raspberry pi - Accessing multiple hosts via SSH on the same public IP -
i have issue in want connect different host computer exists on same public ip (say, 82.90.233.234
). both forwarded same port? example, connect raspberry pi using pi@82.90.233.234
, can easily. have desktop want access via ssh @ different desktop@82.90.233.234
. there way can accomplished?
disclaimer: not actual ips.
for example, connect raspberry pi using pi@82.90.233.234, can easily. have desktop want access via ssh @ different desktop@82.90.233.234. there way can accomplished?
if using different usernames in example, have 1 computer listening ssh connections @ 82.90.233.234, , user pi
spawn shell session , user desktop
automatically spawn ssh session desktop host.
you set port forwarding default port 22 raspberry pi, connecting port 2200 forward ssh server on desktop. set aliases in local .ssh/config
file:
host pi hostname 82.90.233.234 user pi host desktop hostname 82.90.233.234 user desktop port 2200
with in place, ssh pi
or ssh desktop
, ssh pick remote username , remote port configuration file.
Comments
Post a Comment