Создаю туннель на выделенном сервере Debian 7.7 x64
root@debian:~# strace -e open -f sshpass -p guest ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null guest@11.11.11.11 -C -N -D 127.0.0.1:22220 -f
вывод обрезан
[pid 10451] open("/dev/tty", O_RDWR) = 4
[pid 10451] open("/dev/tty", O_RDWR) = 4
debug1: Enabling compression at level 6.
debug1: Authentication succeeded (keyboard-interactive).
Authenticated to 11.11.11.11 ([11.11.11.11:22).
debug1: Local connections to 127.0.0.1:22220 forwarded to remote address socks:0
debug1: Local forwarding listening on 127.0.0.1 port 22220.
debug1: channel 0: new [port listener]
debug1: Entering interactive session.
^CProcess 10451 detached
root@debian:~# debug1: channel 0: free: port listener, nchannels 1
debug1: Killed by signal 1.
^C
создаю туннель на debian 7.7 x64 (тот же образ) установлен на virtualbox или qemu
получаю ошибку
root@debian:~# strace -e open -f sshpass -p guest ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null guest@11.11.11.11 -C -N -D 127.0.0.1:22220 -f
Warning: Permanently added '11.11.11.11' (RSA) to the list of known hosts.
[pid 10454] open("/dev/tty", O_RDWR) = 4
[pid 10454] open("/dev/tty", O_RDWR) = 4
Process 10455 attached
Process 10454 detached
[pid 10453] --- SIGCHLD (Child exited) @ 0 (0) ---
--- SIGHUP (Hangup) @ 0 (0) ---
Process 10455 detached
root@debian:~#
если создавать туннель в режиме -v verbose то все впорядке, но надо в режиме -f fork_after_authentication
почему на виртуальных машинах не работает - я не понимаю.