Re: [ilugd] SSH KeepAlive with Switched Networks
On Tuesday 27 Sep 2011, Ashish SHUKLA wrote: > You probably mean to run "screen" in "ssh", i.e. screen on remote > end? Otherwise with "screen to run your ssh in", instead of using > GNOME terminal's pty, you're using screen's pty, with nothing > changed at the network interface level. Er, right! Run screen on the ssh server, and login to it from any network. Regards, -- Raj -- Raj Mathurr...@kandalaya.org http://kandalaya.org/ GPG: 78D4 FC67 367F 40E2 0DD5 0FEF C968 D0EF CC68 D17F PsyTrance & Chill: http://schizoid.in/ || It is the mind that moves ___ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd
Re: [ilugd] SSH KeepAlive with Switched Networks
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Raj Mathur (राज माथुर) writes: > On Tuesday 27 Sep 2011, Saurabh Sharma wrote: >> I’m on a LAN [in office] connected to remote server over SSH [using >> gnome terminal], now I've to go over for a meeting on another floor >> along with my notebook. I switch on to mine office WLAN with a >> descent 90+ signal strength, Network manager shows both connections >> there as connected. I disconnect my LAN connection and now on WLAN >> when i try working on the server to which i was connected, the >> server is not responding to my keystrokes as if the connection broke >> and i have to make a new connection to the server in order to use it >> in a new tab. The old connection [the one over LAN ] breaks after >> some time, with a timeout message. > If you want to continue using the same connection over LAN and WLAN, you > will have to either have the same IP address on both media, or use an > app like screen to run your ssh in. You probably mean to run "screen" in "ssh", i.e. screen on remote end? Otherwise with "screen to run your ssh in", instead of using GNOME terminal's pty, you're using screen's pty, with nothing changed at the network interface level. HTH - -- Ashish SHUKLA “We've so many people in India, that all of our time is spent doing Census only.” (abbe) -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.17 (FreeBSD) iQIcBAEBCgAGBQJOgeJOAAoJEMdGz6nnT6Sw5cEQAJBYYEQ1BZMSpPYyex9ue6Yt TCfiuqiavLz5V6XssZZGDpPV719mzWgbEui+6bqUSyjGqiUWUfp9InYAATgJnjo+ YGusMc4YWbaffsgQZ4fe92B51Km758ErMgFVdI1+Eje2H9voM6CGYYVlC7ef1RW5 UD393sEEmVd5+Cr99uKcs0HZ/tKLKlzYr4w6IhyAG2TUvAuEQIqKZW2Uwfe1/Q/C Zmury5VMm3K95p42PSxkbYDHJpTLBe8zDiFN/IfrZ5chG9Kr8XohtiY8cWTzklBH ldxLd6UYQGIpvrvK5u7ycqJoJCyMEWnWsLLnGTQ5iY8w2TMyaJal3mQ+RYkKWkQ8 sd+A7UbkFX/WAYxpURX1DNO5mTSNJAiu6hToFibclauG1tPr3HkM/ynl4iRkU/YL 6zRh94ySgZieQcOFhM2EGOYrnDFo/M3kwzOGFSRk8iqaFZZjZh1cIN6CdsfJhkRT O0MDcYE+AYIUpInPcYBjMVYW9/hkAKW3Uhnlbej783jA2tsI+/zqOdvi/GN4idAB dieRmY4hKIHhbTRT5OMfH78bAIk41wKemKf9uhXPYVZ+fjTPXZ1UVvADSft5TXvC hLqcbCLqksVS+uTMTJKOYV2J+eDTLi7G+PzXI6Xp2hgPQmXwqEGOLMbmavGk81Qc 5fnWsjUgD10bTh5AWqYl =+VEO -END PGP SIGNATURE- ___ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd
Re: [ilugd] SSH KeepAlive with Switched Networks
On Tuesday 27 Sep 2011, Ashish SHUKLA wrote: > > I’m on a LAN [in office] connected to remote server over SSH [using > > gnome terminal], now I've to go over for a meeting on another floor > > along with my notebook. I switch on to mine office WLAN with a > > descent 90+ signal strength, Network manager shows both > > connections there as connected. I disconnect my LAN connection and > > now on WLAN when i try working on the server to which i was > > connected, the server is not responding to my keystrokes as if the > > connection broke and i have to make a new connection to the server > > in order to use it in a new tab. The old connection [the one over > > LAN ] breaks after some time, with a timeout message. > > Do you get the same IP address on both interfaces? Actually, come to think of it even having the same IP address on both networks may not work. Off the top of my head, it would depend on: 1. Whether your NAT provider sees LAN and WLAN packets coming over different interfaces or the same interface, and 2. Whether your NAT provider is interface-agnostic or not. If your packets are coming over different interfaces, and the NAT box is storing the interface as part of the connection meta-data, then even having the same IP on different networks may not work. Use screen, $deity's gift to system administrators all over the world! Regards, -- Raj -- Raj Mathurr...@kandalaya.org http://kandalaya.org/ GPG: 78D4 FC67 367F 40E2 0DD5 0FEF C968 D0EF CC68 D17F PsyTrance & Chill: http://schizoid.in/ || It is the mind that moves ___ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd
Re: [ilugd] SSH KeepAlive with Switched Networks
On Tuesday 27 Sep 2011, Saurabh Sharma wrote: > I’m on a LAN [in office] connected to remote server over SSH [using > gnome terminal], now I've to go over for a meeting on another floor > along with my notebook. I switch on to mine office WLAN with a > descent 90+ signal strength, Network manager shows both connections > there as connected. I disconnect my LAN connection and now on WLAN > when i try working on the server to which i was connected, the > server is not responding to my keystrokes as if the connection broke > and i have to make a new connection to the server in order to use it > in a new tab. The old connection [the one over LAN ] breaks after > some time, with a timeout message. If you want to continue using the same connection over LAN and WLAN, you will have to either have the same IP address on both media, or use an app like screen to run your ssh in. Regards, -- Raj -- Raj Mathurr...@kandalaya.org http://kandalaya.org/ GPG: 78D4 FC67 367F 40E2 0DD5 0FEF C968 D0EF CC68 D17F PsyTrance & Chill: http://schizoid.in/ || It is the mind that moves ___ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd
Re: [ilugd] SSH KeepAlive with Switched Networks
On Tue, Sep 27, 2011 at 7:01 PM, Saurabh Sharma wrote: > Is there a way to overcome this situation. > > Situation : > I’m on a LAN [in office] connected to remote server over SSH [using > gnome terminal], now I've to go over for a meeting on another floor > along with my notebook. I switch on to mine office WLAN with a descent > 90+ signal strength, Network manager shows both connections there as > connected. I disconnect my LAN connection and now on WLAN when i try > working on the server to which i was connected, the server is not > responding to my keystrokes as if the connection broke and i have to > make a new connection to the server in order to use it in a new tab. > The old connection [the one over LAN ] breaks after some time, with a > timeout message. > > Configuration tried out : > I have the settings done for keeping SSH session alive by adding entry > 'ServerAliveInterval 30' to '/etc/ssh/ssh_config', but that fails to > work in my case. It only supports in case e.g. i connect to a server > over LAN [ have both LAN and WLAN active ]. I break the LAN > connection, now over WLAN the server does NOT shows any response to my > keystrokes [let it be ENTER key]. I connect back to the LAN, and it > works, also all of my previous key strokes are responded to. > > Any help will be great. > > OS : Fedora 14 > OpenSSH_5.5p1, OpenSSL 1.0.0e-fips 6 Sep 2011 > NetworkManager Applet 0.8.4 > try playing with the MTU settings my problem was solved by playing with it , try changing the device name accordingly eth0 Link encap:Ethernet HWaddr 00:1F:16:36:49:A5 inet addr:XXX.XX.XXX.XX Bcast:XXX.XX.XXX.XXX Mask:XXX.XXX.XXX.XXX UP BROADCAST RUNNING MULTICAST MTU:1500 An example command would be like: # ifconfig eth0 mtu 1300 And, if this solves your problem, then set the appropriate MTU in your /etc/sysconfig/network-scripts/ifcfg-eth0 as: DEVICE=eth0 MTU=1250 -Satya fossevents.in ___ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd
Re: [ilugd] SSH KeepAlive with Switched Networks
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Saurabh Sharma writes: > Is there a way to overcome this situation. > Situation : > I’m on a LAN [in office] connected to remote server over SSH [using > gnome terminal], now I've to go over for a meeting on another floor > along with my notebook. I switch on to mine office WLAN with a descent > 90+ signal strength, Network manager shows both connections there as > connected. I disconnect my LAN connection and now on WLAN when i try > working on the server to which i was connected, the server is not > responding to my keystrokes as if the connection broke and i have to > make a new connection to the server in order to use it in a new tab. > The old connection [the one over LAN ] breaks after some time, with a > timeout message. > Configuration tried out : > I have the settings done for keeping SSH session alive by adding entry > 'ServerAliveInterval 30' to '/etc/ssh/ssh_config', but that fails to > work in my case. It only supports in case e.g. i connect to a server > over LAN [ have both LAN and WLAN active ]. I break the LAN > connection, now over WLAN the server does NOT shows any response to my > keystrokes [let it be ENTER key]. I connect back to the LAN, and it > works, also all of my previous key strokes are responded to. Do you get the same IP address on both interfaces? - -- Ashish SHUKLA “Don't dream it… be it!” (The Rocky Horror Picture Show) -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.17 (FreeBSD) iQIcBAEBCgAGBQJOgdRXAAoJEMdGz6nnT6SwWSwP/2ZjoflXCitGcTfJLW7UE9Fc UAJmbr9hLldnOKV9Xpl5rSFLG6bZy8Uly1+dLQxuGCczo9A9jq0+NkPiXTfV9VjV fE44ahUWxQz8lKtxEdFdyZjiucOeW8JvdT/TbLAx8mDxFy2KdJLWyiZkT2CblZZp Nl01ncR2a4HjCbpurBzz6XWbFflKzCB+2e4EdU539qfVPuxWIzOJBkGnwK+0LI7K RhH6DRdcXoZ86+TDF6jA0ox540miMJE9xLV/XCdGhuWg8BWGh5stnpBXM1/UsKPj KiAsIzLhH1E2NqFbzKBPL5gYn/ZIrPVngm3u4p+HKJLId22OK/ctCQZzGK9a9yw+ LKkdsxZ5PuP1ErLlToUaSOk+xAOT/RSZOIaE5dbr68wh31We/JuT/vRXkOjlr7ey tYV2gvPo4i17yrhf/aoxcTxH3vfcbGol0l1s42lkO4bdVmoo6S+xAVFjdf69EtTb Xdw1scxu0zaU5Jj6GmXhE5YPzqrlq9vOW0PtZIqPLAiIKR68M3EHYS1ADik/FFuO GgQpdjPa6XonBOWqmJOyLbD0pxnNBFDIDgz5ANIYATAbd9gSXoUE9/kbLJLTF73u 3JdmTlPAf99cILgE7Y0e3AnynVz1OkZvIJ8ex9S9o1qgW2vf+afyZlDqlr4oM2qg KvuOUXvEpcsyDpeCOxc7 =E+sa -END PGP SIGNATURE- ___ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd
[ilugd] SSH KeepAlive with Switched Networks
Is there a way to overcome this situation. Situation : I’m on a LAN [in office] connected to remote server over SSH [using gnome terminal], now I've to go over for a meeting on another floor along with my notebook. I switch on to mine office WLAN with a descent 90+ signal strength, Network manager shows both connections there as connected. I disconnect my LAN connection and now on WLAN when i try working on the server to which i was connected, the server is not responding to my keystrokes as if the connection broke and i have to make a new connection to the server in order to use it in a new tab. The old connection [the one over LAN ] breaks after some time, with a timeout message. Configuration tried out : I have the settings done for keeping SSH session alive by adding entry 'ServerAliveInterval 30' to '/etc/ssh/ssh_config', but that fails to work in my case. It only supports in case e.g. i connect to a server over LAN [ have both LAN and WLAN active ]. I break the LAN connection, now over WLAN the server does NOT shows any response to my keystrokes [let it be ENTER key]. I connect back to the LAN, and it works, also all of my previous key strokes are responded to. Any help will be great. OS : Fedora 14 OpenSSH_5.5p1, OpenSSL 1.0.0e-fips 6 Sep 2011 NetworkManager Applet 0.8.4 ___ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd