为什么无法在强制模式(-f)下在 virtualbox 或 qemu 中创建 ssh 隧道?

为什么无法在强制模式(-f)下在 virtualbox 或 qemu 中创建 ssh 隧道?

我在专用服务器上尝试

root@debian:~# strace -e open -f sshpass -p guest ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null [email protected] -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 198.51.100.11 ([198.51.100.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

没关系

我尝试在 virtualbox 或 qemu 上安装 debian 7.7 x64

root@debian:~# strace -e open -f sshpass -p guest ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null [email protected] -C -N -D 127.0.0.1:22220 -f
Warning: Permanently added '198.51.100.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:~# 

为什么 ssh 隧道在 virtualbox 或 qemu 上不起作用?ssh tunel 在 vi​​rtualbox 或 qemu 上使用选项-vverbose 可以工作,但使用选项 white 则-f 不起作用

相关内容