As we all know, sometimes, it’s hard for us to connect our remote server directly or the connection is not stable, we have to conduct some method to access our remote server.
(base) firstsnow@DESKTOP-7DDCJ5H:~/.ssh$ ssh -o "ProxyCommand=nc -x 192.161.0.101:7897 %h %p"[email protected] The authenticity of host 'xyz.xxxxx.online (<no hostip for proxy command>)' can't be established. RSA key fingerprint is SHA256:As8XEpRKA0TtNH5poEgpTI5LqZmId0WZnQowWqJMcME. This key is not known by any other names. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added 'cc2.liweijun.online' (RSA) to the list of known hosts. [email protected]'s password: Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-46-generic x86_64)
261 updates can be applied immediately. 174 of these updates are standard security updates. To see these additional updates run: apt list --upgradable
New release '24.04.1 LTS' available. Run 'do-release-upgrade' to upgrade to it.
Last login: Mon Jan 6 22:20:31 2025 from 66.103.216.183 root@cc2:~# whoami root
NOTE: If you can’t access your server through proxy, that could because your proxy service banned traffic through port 22. The best way is to find and change a proxy server merchant who allow traffic through port 22.