OpenSUSE Linux Tips, tricks, how-tos, opinions, and news
My Resume - My LinkedIn Profile - twitter: @scottmmorrisWhen you are forwarding ports through a tunnel, either locally or remotely (i.e., with the -L or -R switches), you can modify the session real-time. The way that you do this is after you start the session, you press SHIFT + ` + c (The ` key also has a ~ in it, which is the actual keypress sent to the session). If it doesn’t work the first time, press ENTER a couple of times and try it again. Once you get the “ssh>” prompt, type “?” for the commands you can put in. Here’s an example session:
[0908][scott@dev:~]$ ssh -R 8080:suseblog.com:8080 scott@suseblog.com
Password:
Last login: Thu Oct 15 11:59:43 2009 from 67.214.232.162
Have a lot of fun...
[1109][scott@mail:~]$ [PRESS SHIFT + ` + c HERE]
ssh> ?
Commands:
-L[bind_address:]port:host:hostport Request local forward
-R[bind_address:]port:host:hostport Request remote forward
-KR[bind_address:]port Cancel remote forward
[PRESS ENTER HERE]
[1110][scott@mail:~]$ [PRESS SHIFT + ` + c HERE]
ssh> -R8080:letslearnlinux.com:1080
Forwarding port.
[1110][scott@mail:~]$
OpenSSH has got to be one of the freakin’ sweetest tools *EVAR*. Anyway, enjoy!
If you enjoyed this post, make sure you subscribe to my RSS feed!| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
| « Aug | ||||||
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | ||
33 queries. 0.521 seconds
October 21st, 2009 at 4:09 pm
I agree! The OpenSSH project of OpenBSD has done a great service to the community for the last 10 years. They recently celebrated the tenth anniversary of the project with the release of OpenSSH 5.3. http://www.openssh.com/txt/release-5.3 Thanks to the programmers mentioned at http://www.openssh.org/history.html.
October 22nd, 2009 at 8:34 am
Thanks for the comment, Mark. OpenSSH++ Thanks for stopping by!
December 4th, 2009 at 6:43 pm
f you are using a system without ssh client then you can use webbased ssh clients (a ssh client on a website) like electrica.
(Also handy when behind a firewall only allowing http traffic)
May 23rd, 2010 at 8:26 am
I tried that electrica link but it seems down. However, I found another ssh client on a website.