Networking Forums

Networking Forums > Computer Networking > Linux Networking > debugging a hang ssh session

Reply
Thread Tools Display Modes

debugging a hang ssh session

 
 
wong_powah@yahoo.ca
Guest
Posts: n/a

 
      02-20-2008, 03:03 PM
I had connected to a server via ssh. After issuing some networking
commands to configure the server, suddenly the ssh session "hang".
i.e. the screen just freezes and I get no prompt.
At this time, I can still configure the server through the serial
port.
How to debug what is wrong?
 
Reply With Quote
 
 
 
 
Dave Uhring
Guest
Posts: n/a

 
      02-20-2008, 03:26 PM
On Wed, 20 Feb 2008 08:03:47 -0800, wong_powah wrote:

> I had connected to a server via ssh. After issuing some networking
> commands to configure the server, suddenly the ssh session "hang". i.e.
> the screen just freezes and I get no prompt.


There is no debugging to do. You connected to xxx.xx.xx.xx and changed
the address to xxx.xx.xx.xy. Your original connection is gone,
disappeared forever.
 
Reply With Quote
 
wong_powah@yahoo.ca
Guest
Posts: n/a

 
      02-20-2008, 08:07 PM
On Feb 20, 11:26 am, Dave Uhring <daveuhr...@yahoo.com> wrote:
> On Wed, 20 Feb 2008 08:03:47 -0800, wong_powah wrote:
> > I had connected to a server via ssh. After issuing some networking
> > commands to configure the server, suddenly the ssh session "hang". i.e.
> > the screen just freezes and I get no prompt.

>
> There is no debugging to do. You connected to xxx.xx.xx.xx and changed
> the address to xxx.xx.xx.xy. Your original connection is gone,
> disappeared forever.


I have to use the serial port to continue my configuration. i.e.
ifdown eth0
ifup eth0
pkill -9 sshd

Is there a way to do all this using ssh? I want to avoid using the
serial port if possible.
 
Reply With Quote
 
Dave Uhring
Guest
Posts: n/a

 
      02-20-2008, 09:33 PM
On Wed, 20 Feb 2008 13:07:02 -0800, wong_powah wrote:

> On Feb 20, 11:26 am, Dave Uhring <daveuhr...@yahoo.com> wrote:
>> On Wed, 20 Feb 2008 08:03:47 -0800, wong_powah wrote:
>> > I had connected to a server via ssh. After issuing some networking
>> > commands to configure the server, suddenly the ssh session "hang". i.e.
>> > the screen just freezes and I get no prompt.

>>
>> There is no debugging to do. You connected to xxx.xx.xx.xx and changed
>> the address to xxx.xx.xx.xy. Your original connection is gone,
>> disappeared forever.

>
> I have to use the serial port to continue my configuration. i.e.
> ifdown eth0
> ifup eth0
> pkill -9 sshd
>
> Is there a way to do all this using ssh? I want to avoid using the
> serial port if possible.


You already have the interface configured to the new IP address. Did you
try to establish a new SSH session going to that address?

And what's wrong with using the serial port anyway? I have a serial port
session going right now on a headless machine here.

 
Reply With Quote
 
goarilla@work
Guest
Posts: n/a

 
      02-21-2008, 10:32 AM
Dave Uhring wrote:
> On Wed, 20 Feb 2008 13:07:02 -0800, wong_powah wrote:
> And what's wrong with using the serial port anyway? I have a serial port
> session going right now on a headless machine here.


it's slow, but i think you can do this
if you first create a script

#! /bin/sh
ifdown eth0
ifup eth0
killall -9 sshd
/etc/rc.../sshd start

then execute it in the background (with &)
 
Reply With Quote
 
wong_powah@yahoo.ca
Guest
Posts: n/a

 
      02-21-2008, 01:32 PM
On Feb 20, 5:33 pm, Dave Uhring <daveuhr...@yahoo.com> wrote:
> On Wed, 20 Feb 2008 13:07:02 -0800, wong_powah wrote:
> > On Feb 20, 11:26 am, Dave Uhring <daveuhr...@yahoo.com> wrote:
> >> On Wed, 20 Feb 2008 08:03:47 -0800, wong_powah wrote:
> >> > I had connected to a server via ssh. After issuing some networking
> >> > commands to configure the server, suddenly the ssh session "hang". i.e.
> >> > the screen just freezes and I get no prompt.

>
> >> There is no debugging to do. You connected to xxx.xx.xx.xx and changed
> >> the address to xxx.xx.xx.xy. Your original connection is gone,
> >> disappeared forever.

>
> > I have to use the serial port to continue my configuration. i.e.
> > ifdown eth0
> > ifup eth0
> > pkill -9 sshd

>
> > Is there a way to do all this using ssh? I want to avoid using the
> > serial port if possible.

>
> You already have the interface configured to the new IP address. Did you
> try to establish a new SSH session going to that address?
>
> And what's wrong with using the serial port anyway? I have a serial port
> session going right now on a headless machine here.


My serial port setting is not right so that using vi to edit a file
does not display the file properly.
I have to use <ctrl><F> and <ctrl><B> to refresh the screen to display
the file properly.
How to setup my serial port properly?
 
Reply With Quote
 
wong_powah@yahoo.ca
Guest
Posts: n/a

 
      02-21-2008, 01:46 PM
On Feb 21, 9:32 am, wong_po...@yahoo.ca wrote:
> On Feb 20, 5:33 pm, Dave Uhring <daveuhr...@yahoo.com> wrote:
>
>
>
> > On Wed, 20 Feb 2008 13:07:02 -0800, wong_powah wrote:
> > > On Feb 20, 11:26 am, Dave Uhring <daveuhr...@yahoo.com> wrote:
> > >> On Wed, 20 Feb 2008 08:03:47 -0800, wong_powah wrote:
> > >> > I had connected to a server via ssh. After issuing some networking
> > >> > commands to configure the server, suddenly the ssh session "hang". i.e.
> > >> > the screen just freezes and I get no prompt.

>
> > >> There is no debugging to do. You connected to xxx.xx.xx.xx and changed
> > >> the address to xxx.xx.xx.xy. Your original connection is gone,
> > >> disappeared forever.

>
> > > I have to use the serial port to continue my configuration. i.e.
> > > ifdown eth0
> > > ifup eth0
> > > pkill -9 sshd

>
> > > Is there a way to do all this using ssh? I want to avoid using the
> > > serial port if possible.

>
> > You already have the interface configured to the new IP address. Did you
> > try to establish a new SSH session going to that address?

>
> > And what's wrong with using the serial port anyway? I have a serial port
> > session going right now on a headless machine here.

>
> My serial port setting is not right so that using vi to edit a file
> does not display the file properly.
> I have to use <ctrl><F> and <ctrl><B> to refresh the screen to display
> the file properly.
> How to setup my serial port properly?


I use HyperTerminal on windows 2000 to connect to my serial port.
 
Reply With Quote
 
Dave Uhring
Guest
Posts: n/a

 
      02-21-2008, 02:54 PM
On Thu, 21 Feb 2008 06:46:51 -0800, wong_powah wrote:

> I use HyperTerminal on windows 2000 to connect to my serial port.


There are far better choices of terminal emulator available. That one you
use is just like the rest of Windows software - shit. In the distant past
I used this one:

http://hp.vector.co.jp/authors/VA002416/teraterm.html

Since vi is sensitive to the type of terminal emulated, try to find the
one which works best for you, most likely VT102. Then in your shell
session:

# export TERM=vt102

 
Reply With Quote
 
wong_powah@yahoo.ca
Guest
Posts: n/a

 
      02-21-2008, 05:38 PM
On Feb 21, 10:54 am, Dave Uhring <daveuhr...@yahoo.com> wrote:
> On Thu, 21 Feb 2008 06:46:51 -0800, wong_powah wrote:
> > I use HyperTerminal on windows 2000 to connect to my serial port.

>
> There are far better choices of terminal emulator available. That one you
> use is just like the rest of Windows software - shit. In the distant past
> I used this one:
>
> http://hp.vector.co.jp/authors/VA002416/teraterm.html
>
> Since vi is sensitive to the type of terminal emulated, try to find the
> one which works best for you, most likely VT102. Then in your shell
> session:
>
> # export TERM=vt102


A newer version is at:
http://ttssh2.sourceforge.jp/
 
Reply With Quote
 
Dave Uhring
Guest
Posts: n/a

 
      02-21-2008, 05:45 PM
On Thu, 21 Feb 2008 10:38:50 -0800, wong_powah wrote:
> On Feb 21, 10:54 am, Dave Uhring <daveuhr...@yahoo.com> wrote:


>> http://hp.vector.co.jp/authors/VA002416/teraterm.html


> A newer version is at:
> http://ttssh2.sourceforge.jp/


I won't have a bit of use for it. The only thing I have from Microsoft is
a one line shell script in Solaris which has more copyright crap from them
than substance.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RDP session hang Alberto Brivio Windows Networking 1 05-17-2007 10:21 AM
debugging routing problem gene Linux Networking 2 06-22-2006 08:01 PM
debugging dhcp cient using ddd RajaSekhar.Kavuri Linux Networking 1 03-02-2005 08:01 AM
Netperf Debugging JoohyeonPark Linux Networking 3 10-14-2004 04:58 PM
ADSL Debugging? Ian Waring Broadband 2 08-16-2004 02:20 PM



1 2 3 4 5 6 7 8 9 10 11