История изменений
Исправление olelookoe, (текущая версия) :
server>$ ssh user-of-vpn@vpn -p 22 -R 2222:127.0.0.1:22 #-i ~/.ssh/password-less/id_rsa
# check
vpn>$ ssh user-of-server@localhost -p 2222
# here we go
client>$ ssh user-of-vpn@vpn -p 22 -fTN -L 1111:127.0.0.1:2222 #-i ~/.ssh/password-less/id_rsa
client>$ ssh user-of-server@localhost -p 1111
Welcome to ...
...
...
user-of-server@server>$ who
username pts/1 ...
...
user-of-server@server>$ echo "hi, its me!" | write username pts/1
если, конечно, мне не изменяют маразм и склероз.
Исходная версия olelookoe, :
server>$ ssh user-of-vpn@vpn -p 22 -R 2222:127.0.0.1:22 #-i ~/.ssh/password-less/id_rsa
vpn>$ ssh user-of-server@localhost -p 2222
client>$ ssh user-of-vpn@vpn -p 22 -fTN -L 1111:127.0.0.1:2222 #-i ~/.ssh/password-less/id_rsa
client>$ ssh user-of-server@localhost -p 1111
Welcome to ...
...
...
user-of-server@server>$ who
username pts/1 ...
...
user-of-server@server>$ echo "hi, its me!" | write username pts/1
если, конечно, мне не изменяют маразм и склероз.