Re: change IP addresses from xxx.xx.xx.xx to xxx.xx.xx.yz, the ssh session hang



On 2008-02-20, wong_powah@xxxxxxxx <wong_powah@xxxxxxxx> wrote:
I had connected to a server via ssh. After issuing some networking
commands to change the eth0 IP addresses from xxx.xx.xx.xx to
xxx.xx.xx.yz, the ssh session "hang". i.e. the screen just freezes and
I get no prompt.

Well, yeah. You have a connection to IP address xxx.xx.xx.xx. When
you change the IP address to xxx.xx.xx.yz, you don't have a connection
to the new IP address, you still have a connection to xxx.xx.xx.xx--
which isn't a connection that has anything on the other end any more.
Hence, the freeze.

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

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

Assuming you can't get a new connection via ssh until you bounce the
eth0 connection, you could schedule the whole thing via crontab
or at and then reconnect once it finishes. You'd still want the
serial as backup in case you don't pull it off. The basic fact here
is that you're doing basic reconfiguration of your networking; while
it's happening, you can't expect to have have any network connectivity.


--
Christopher Mattern

NOTICE
Thank you for noticing this new notice
Your noticing it has been noted
And will be reported to the authorities
.



Relevant Pages

  • Re: What is The SSH?
    ... Building and Using SSH Tunnels ... What is an SSH tunnel? ... how to use it to make a connection to a server. ... You will need a working SSH client and server installation to build and test ...
    (microsoft.public.windows.server.networking)
  • Re: Problem connecting to SSH, OpenVMS7.3-2, HP TCP/IP v5.4 patched
    ... warning: Authentication failed. ... connection lost (Connection closed by remote host.). ... So, as you can see, I am trying to make an ssh connection with the ...
    (comp.os.vms)
  • Re: Keeping OpenSSH connections alive
    ... The TCP connection is timing out, not the SSH session. ... You can then, reconnect to the backgrounded screen session, upon relogin. ...
    (SSH)
  • Re: Remote Desktop Connection
    ... You can try a free two user version of SSL-Explorer to try it out. ... SSL-Explorer also supports a web based RDC and VNC access to desktop PCs on your network. ... OpenVPN is completely free like SSH. ... What if i have a linkys WiFi router, and does not have vpn feature, how could i secure the connection? ...
    (microsoft.public.windowsxp.work_remotely)
  • PPTP with PoPToP via ADSL (T-Online) without ext. Router
    ... Linux-Computer with eth0 as internal net, and ppp0, which is a PPPoE ... In the moment I try to build up the connection from outside (from the ... talked about the type of internet connection. ... /usr/sbin/pptpctrl to handle client ...
    (alt.os.linux.suse)