at least just through rsync
The rsync program by default (without explicitly specifying the protocol) works over an ssh connection.
let's say we have:
- host1 - a machine with an ssh client , without any internet access and nameservers , but with network access to host2
- host2 - a machine with an ssh server with internet access
- host3 - a machine with an ssh server , somewhere on the Internet
- we have logins / passwords for connecting via ssh to both host2 and host3: user2 @ host2, user3 @ host3
on host1, add the following (absolutely standard for proxying) lines to the ~/.ssh/config
file:
host host3 proxycommand ssh user2@host2 nc %h %p
now the command:
$ rsync user3@host3:/путь/к/файлу /локальный/путь/
quietly copies /путь/к/файлу
(located on host3) to the local directory /локальный/путь/
.
and vice versa:
$ rsync /локальный/файл user3@host3:/путь/
route add default gw внутренний-ip-первого-сервера
. Look where it’s set in the debian, there surely is just some sort of config where the gateway address is stupidly written and that's it - Mike