I have Ubuntu 22.04 on both the client and server. I have set PermitTunnel yes
in sshd_config
in both the client (I might not need it on the client) and the server. I have also set Tunnel yes
and TunnelDevice any:any
in the ssh_config
in both the client and the server (I might not need it in the server), and ensured that the server is restarted after the configuration has been applied. I have setup a TAP device on both ends, named tap0
, using the following command ran in both ends:
ip tuntap add dev tap0 mode tap
Then, on the root
account in my client machine, I SSH'd into the root
account of my server machine using the following command:
ssh -w 0:0 root@<my server> -p <ssh port>
However, I do not seem to be able to get any of the TAP adapters to be UP
(i.e. it doesn't seem that SSH is using the TAP adapters in any of the ends). I have ran the following command in both ends, and found that the state of the TAP adapters are still DOWN
:
ip link show tap0
output:
30: tap0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
link/ether 6e:ff:d7:19:ee:b2 brd ff:ff:ff:ff:ff:ff
This means I cannot also ping any of the devices on any of the ends (I tried setting a static IP on both ends and no luck).
I have also tried the latest Fedora for the server side as well, and found the same output.
I am not sure what am I missing here, and would love some help.
P.S. The server is is server ISO VirtualBox VM, and I am SSHing into it using NAT port forwarding of the guest's 22
port to some host port.