Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kermit hangs on connect
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
kc8tbe
Tux's lil' helper
Tux's lil' helper


Joined: 12 Aug 2003
Posts: 135
Location: Cleveland, OH USA

PostPosted: Fri Jun 25, 2004 12:45 pm    Post subject: kermit hangs on connect Reply with quote

I'm trying to use ckermit to connect to a Cisco router. Here's what I did for setup:
emerge ckermit
chown uucp /usr/bin/ckermit

And on each system startup:
chown uucp /dev/ttyS0
chmod u+rwx /dev/ttyS0

Once the Cisco router is turned on:
kermit
> set line /dev/ttyS0
> set carrier-watch off
> connect

I get the message about what escape characters are enabled, and then ckermit hangs. No prompt from the router. I need to to a kill -9 to get out of it. I've also tried this:
kermit
> set line /dev/ttyS0
> set carrier-watch off
> set speed 9600
> set stop-bits 1
> set parity none
> set flow-control none
> connect

with the same results. Using Windows Hyperterminal or an old Sherwood terminal I have no trouble connecting to the router. Any idea what I am doing wrong?
Back to top
View user's profile Send private message
kc8tbe
Tux's lil' helper
Tux's lil' helper


Joined: 12 Aug 2003
Posts: 135
Location: Cleveland, OH USA

PostPosted: Fri Jun 25, 2004 1:38 pm    Post subject: Reply with quote

...and as usual, I discover the solution right after I post. :oops: The problem was in a network cable, and kermit was hanging because fopen() was blocking the program. FYI, here's a little howto for connecting to Cisco routers with kermit for any other newbies like me:

1. Install kermit:
# emerge ckermit
# chown uucp /usr/bin/kermit

2. Every system bootup (or whenever you want to use kermit). Replace /dev/ttyS0 with the approriate device file:
# chown uucp /dev/ttyS0
# chmod u+rw /dev/ttyS0

3. To connect (note that > denotes a Kermit prompt):
# kermit
> set line /dev/ttyS0
> set carrier-watch off
> connect

4. To disconnect and exit kermit, press Ctrl+\+C, then:
> quit

Enjoy!
Back to top
View user's profile Send private message
diaz
n00b
n00b


Joined: 20 Nov 2003
Posts: 15
Location: Oslo, Norway

PostPosted: Fri Sep 17, 2004 7:26 pm    Post subject: Reply with quote

Just wanted to say:

Thanks alot. :D
_________________
Leftfield - Chant of a poor man
Back to top
View user's profile Send private message
JoshFed
n00b
n00b


Joined: 21 Jul 2003
Posts: 44
Location: Tacoma, WA USA

PostPosted: Tue Jul 31, 2007 4:01 pm    Post subject: Reply with quote

I can connect to the Cisco via kermit as root. There's another user who will need access to the Cisco too. Can I make it so kermit can be used by non root users?

Code:
(/home/josh/) C-Kermit>set line /dev/ttyS0
/var/lock: Permission denied
Sorry, write access to UUCP lockfile directory denied.
Back to top
View user's profile Send private message
Stever
Apprentice
Apprentice


Joined: 01 Mar 2005
Posts: 151
Location: North Carolina

PostPosted: Tue Jul 31, 2007 5:34 pm    Post subject: Reply with quote

What if you add the user to the uucp group?
Back to top
View user's profile Send private message
JoshFed
n00b
n00b


Joined: 21 Jul 2003
Posts: 44
Location: Tacoma, WA USA

PostPosted: Tue Jul 31, 2007 6:41 pm    Post subject: Reply with quote

Good thinkin Stever. That works. Thanks
Back to top
View user's profile Send private message
gemi
n00b
n00b


Joined: 10 Oct 2012
Posts: 31

PostPosted: Thu Oct 18, 2012 12:08 am    Post subject: Reply with quote

all the above does not work for me.

I installed ckermit from scratch and followed the instructions above. I still get the /var/lock: Permission denied Worry, write access to UUCP lockfile directory denied.

Any ideas anyone?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23091

PostPosted: Thu Oct 18, 2012 1:38 am    Post subject: Reply with quote

Resurrecting a five year old thread is not particularly good practice.

What is the output of ls -la /var/lock{,/} ; id?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum