SSH port forwarding bypass username


(Ahmed Gawad) #1

I have multi hop SSH tunnel where the second SSH tunnel accept connection like this format

ssh hostname [username]

so it doesn’t work with the standard format ssh username@hostname and as result connection is refused when tunnel is done from SSH tunnel application.

Can I bypass sending username in SSH client when creating new tunnel?


(Yang.Y) #2

SSH Tunnel does not involve ssh command line when connect to the host, it talks to the remote host with SSH protocol directly.

So in principle, you can send username to the remote side regardless of the format.