What if you've got a ssh client and a server, but you want to connect from server to client, for example, for remote assistance, or even, a server and twenty clients, where you don't want to install ssh servers.
function helpme { echo -ne "Usage:\n$0 TunnelPort RemotePort RemoteUser RemoteHost\n" ;exit; } && [[ $4 == "" ]] && helpme
xterm -title "Remote admin" -e "echo -ne 'Remote administration\n Connecting to ($4)\n Enter $3 password now\n '; ssh -R $1:localhost:$2 -N $3@$4…
Continue
Posted on April 12, 2009 at 2:30pm — 2 Comments