Re: [ilugd] SSH KeepAlive with Switched Networks

2011-10-02 Thread sawrub
On Fri, Sep 30, 2011 at 8:15 PM, sawrub saw...@fedoraproject.org wrote:
 2011/9/27 Raj Mathur (राज माथुर) r...@linux-delhi.org:
 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 Mathur                r...@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


 Thanks for all replies and i'm sorry for the late response as was
 unable to check the mail. SCREEN + SSH seems like a gr8 app that i was
 unaware off. Will be using the same tomorrow and will let you all
 friends know the results.
 Thanks after all.

 Thanks
 Sawrub


I tried using SCREEN in the environment and that doesn't seen to help
me out [as far as i tried].
Her is how i went by :
1. Switched on SCREEN and connected to server.
2. Connected on the WLAN
3. Disconnected the LAN, the SCREEN stopped responding to key strokes.
4. Open up anew tab
5. Tried checking out the SCREEN sessions [screen -ls]
6. Detached the session [screen -d xxx], with xxx being the session id.
7. Re-Attached the screen session [screen -d xxx], was greeted with
the server prompt, but still the server was not responding to the key
strokes.

Seems like this will not work since in this case the IP are changing.
Will have to try out satya;s hack and the tmux.

Thanks for the help and time.

thanks
Sawrub

___
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd


Re: [ilugd] SSH KeepAlive with Switched Networks

2011-10-02 Thread Ashish SHUKLA
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

sawrub  writes:
 On Fri, Sep 30, 2011 at 8:15 PM, sawrub saw...@fedoraproject.org wrote:
 2011/9/27 Raj Mathur (राज माथुर) r...@linux-delhi.org:
 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 Mathur                r...@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
 
 
 Thanks for all replies and i'm sorry for the late response as was
 unable to check the mail. SCREEN + SSH seems like a gr8 app that i was
 unaware off. Will be using the same tomorrow and will let you all
 friends know the results.
 Thanks after all.
 
 Thanks
 Sawrub
 

 I tried using SCREEN in the environment and that doesn't seen to help
 me out [as far as i tried].
 Her is how i went by :
 1. Switched on SCREEN and connected to server.

I assume you meant connected to the server, and started screen, i.e. screen
should be running on remote shell, not locally. Otherwise it won't help with
the problem you're facing. And, if you decide to go for tmux, then it also
needs to be used in a similar manner, i.e. started at server end.

HTH
- -- 
Ashish SHUKLA

“Violence is the last refuge of the incompetent.” (Isaac Asimov,
Foundation, 1942-05)
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.17 (FreeBSD)

iQIcBAEBCgAGBQJOiUj+AAoJEMdGz6nnT6SwtYYP/Ai1qtVws5Sk0scG2P883Adb
RTRVoAJSlGx+B7DSASEhI4ZXRnJ6WqXNdt1NK+vIs99gF6JHBwK6IFpGLiJQRL0m
ISFJlQY6+UOOsyBJcWoiqd7hlGtsEbex6GWBVCPk0o0/II+DNly7i7T3FzDCZy3H
MFqs5ckC91z2RrJ0dw4RuyarrbVrJZCR8qkmg+yNmjBEP6Rl21Ltujgq/ni1hoRW
clqQNdLeT0Uo3t2nFkKJZSIcL0MGtva6WM7SP3aw3yeom1l9hri3xNEiTxgqkTQY
HXyBtHyW215fYC/sxnLmvwl28C/UqF2KTNJ6CEVGbZRPqdLm4HyiPKBs46QIyR+w
AmnY+3ZfuJmCtSLGemxStQCxnprB6Tqp0pSizmb5HaLFFade6mtqWX9sFjpPSsBr
zArPfkc6LbTikiRG7O91fpD3fbhos4k6yn/v9scnVRy4k6tRBsKrywzQc/q1/cFl
uRRgCJTCbcXq/JRfYbHKBRTLKoM0W0dZ28oDmZgNzQ7Z+jGd6e6J9+KXqNhxVGzT
79fRHOTW03Fy15Ocq+cZrrYLRHzdi+ljtWQ6AgTyFkcuEqvvqfd4+47i3MTPHIYn
37LHiYxqqyWvp30qDrryvcAi8+aqYHHicZWClSe0lg/5wz3CYzHt+8PmsaF59lDq
iCmeEGBf54pspsQ3SbAV
=m1nd
-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

2011-10-02 Thread sawrub
On Mon, Oct 3, 2011 at 10:45 AM, sawrub saw...@fedoraproject.org wrote:
 On Fri, Sep 30, 2011 at 8:15 PM, sawrub saw...@fedoraproject.org wrote:
 2011/9/27 Raj Mathur (राज माथुर) r...@linux-delhi.org:
 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 Mathur                r...@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


 Thanks for all replies and i'm sorry for the late response as was
 unable to check the mail. SCREEN + SSH seems like a gr8 app that i was
 unaware off. Will be using the same tomorrow and will let you all
 friends know the results.
 Thanks after all.

 Thanks
 Sawrub


 I tried using SCREEN in the environment and that doesn't seen to help
 me out [as far as i tried].
 Her is how i went by :
 1. Switched on SCREEN and connected to server.
 2. Connected on the WLAN
 3. Disconnected the LAN, the SCREEN stopped responding to key strokes.
 4. Open up anew tab
 5. Tried checking out the SCREEN sessions [screen -ls]
 6. Detached the session [screen -d xxx], with xxx being the session id.
 7. Re-Attached the screen session [screen -d xxx], was greeted with
 the server prompt, but still the server was not responding to the key
 strokes.

 Seems like this will not work since in this case the IP are changing.
 Will have to try out satya;s hack and the tmux.

 Thanks for the help and time.

 thanks
 Sawrub


Also please feel to point out if i'm wrong some where in using screen.

The IP assigned to machine is as follows :

[sawrub@sawrub ~]$ ifconfig
eth0  Link encap:Ethernet  HWaddr 64:31:50:A5:45:21
  inet6 addr: fe80::6631:50ff:fea5:4521/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:86324 errors:0 dropped:0 overruns:0 frame:0
  TX packets:51740 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:59234343 (56.4 MiB)  TX bytes:8041316 (7.6 MiB)
  Interrupt:47 Base address:0xa000


wlan0 Link encap:Ethernet  HWaddr 68:A3:C4:0F:58:BA
  inet addr:172.16.5.180  Bcast:172.16.5.255  Mask:255.255.255.0
  inet6 addr: fe80::6aa3:c4ff:fe0f:58ba/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:974 errors:0 dropped:0 overruns:0 frame:0
  TX packets:630 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:333188 (325.3 KiB)  TX bytes:84880 (82.8 KiB)
  Interrupt:17 Memory:c9001136-c90011360100

___
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd


Re: [ilugd] SSH KeepAlive with Switched Networks

2011-09-30 Thread sawrub
2011/9/27 Raj Mathur (राज माथुर) r...@linux-delhi.org:
 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 Mathur                r...@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


Thanks for all replies and i'm sorry for the late response as was
unable to check the mail. SCREEN + SSH seems like a gr8 app that i was
unaware off. Will be using the same tomorrow and will let you all
friends know the results.
Thanks after all.

Thanks
Sawrub

___
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd


Re: [ilugd] SSH KeepAlive with Switched Networks

2011-09-30 Thread Ashish SHUKLA
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

sawrub  writes:
 2011/9/27 Raj Mathur (राज माथुर) r...@linux-delhi.org:
 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 Mathur                r...@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
 

 Thanks for all replies and i'm sorry for the late response as was
 unable to check the mail. SCREEN + SSH seems like a gr8 app that i was
 unaware off. Will be using the same tomorrow and will let you all
 friends know the results.
 Thanks after all.

If you've never used screen, then I recommend using tmux[1], it's a BSD
licensed superset of GNU screen. Users of GNU screen might find it bit odd.

References:
[1]  http://tmux.sourceforge.net/

HTH
- -- 
Ashish SHUKLA

“Anyone who considers arithmetical methods of producing random digits
is, of course, in a state of sin.” (John Von Neumann, 1951)
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.17 (FreeBSD)

iQIcBAEBCgAGBQJOhd+CAAoJEMdGz6nnT6SwI1QP/2jGwb5tz+FtScdujfQx3Y7g
gw0jwXdIUBAmGSqdxbIFs0lJ7w6jGq8waiakJxqLMcG4SoLzpwSvzsrQjksoolva
Ojc9+RMELDx1itRHHdLYMYCbb91/CG3WPp3U60EQHYOD4zyJPfUfD/WUnRGjmNAm
Rxie8+dIwxth4o/6tlAmHfrHfCJVN34fp6vNkg/DBQ0qWTz6PWm6OBU4NZme5KY0
DwsvWWld64r7Ep1bhq31SGJBJyG6pAAQ9xS6CxOuMJ0YQ1gMNpYOSvy62Mcg1uSb
uhLlT9DbNWhM7C1P8HToMS7mD/pjF7ECCy6pokBJFffpVO6GuBQSMDFIOgts9onk
W/5NmXvUVUi0eEaG+wNhPZ8J/y3sye4+8EgrLBjA9fbeN2mofFbaqj4LmQblsEIf
xGZOIHK9xjFehNx7eI54kCUGHQETEsn+FWaCvnzIoGTZB8zlzb187ngigSrJrd+c
KBa+n54K0e8397j1Cp4ODXm3rw+/VeegwNtvyM6cHMyEiEr/9wjpWHTZ3GSKjSVU
oz74xjD3mcR8Pq7QSCDTanXEiP7I56zJZKJLa75BPxVYmBv/0R+NdPinKnykm7c/
vy9DhqJyHVlCIoPy9Jhc7/wE20IUTHBIZ8YOoEaBjBxUbh+Pjqp9Z2a0Quzl04iY
tJnVwDMR/rcsz0IjMgI3
=vP/o
-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

2011-09-30 Thread Gora Mohanty
On Fri, Sep 30, 2011 at 8:55 PM, Ashish SHUKLA ashish...@lostca.se wrote:
[...]
 If you've never used screen, then I recommend using tmux[1], it's a BSD
 licensed superset of GNU screen. Users of GNU screen might find it bit odd.


tmux is nice, but you are only going to pry screen out
of my cold, dead fingers (cue emacs vs. vi flamewars).
Only thing that I dislike is that it hijacks emacs control
sequences that are hard-wired into my brain: god meant
Ctrl-A to take one to the beginning of the relevant
context.

Regards,
Gora

P.S. M-x all-hail-screen

___
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd


Re: [ilugd] SSH KeepAlive with Switched Networks

2011-09-27 Thread Ashish SHUKLA
-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


Re: [ilugd] SSH KeepAlive with Switched Networks

2011-09-27 Thread satyaakam goswami
On Tue, Sep 27, 2011 at 7:01 PM, Saurabh Sharma luckysharm...@gmail.comwrote:

 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

2011-09-27 Thread Raj Mathur (राज माथुर)
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

2011-09-27 Thread Raj Mathur (राज माथुर)
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

2011-09-27 Thread Ashish SHUKLA
-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

2011-09-27 Thread Raj Mathur (राज माथुर)
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