SSH 命令语法:
- usage: SSH [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]
- [-b bind_address] [-c cipher_spec] [-D [bind_address:]port]
- [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11]
- [-i identity_file] [-J [[email protected]]host[:port]] [-L address]
- [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
- [-Q query_option] [-R address] [-S ctl_path] [-W host:port]
- [-w local_tun[:remote_tun]] destination [command]
本地修改端口后无法连接 SSH
- C:\Users\jition>SSH jition[email protected]:2222
- SSH: Could not resolve hostname 127.0.0.1:2222: \262\273\326\252\265\300\325\342\321\371\265\304\326\367\273\372\241\243
解决方法:
使用指定端口号登录 (-l 表示 login_name -p 表示端口号)
- [[email protected] ~]$ SSH -l jition 192.168.1.105 -p 2222
- The authenticity of host '[192.168.1.110]:2222 ([192.168.1.110]:2222)' can't be established.
- ECDSA key fingerprint is SHA256:Tui3jBxEkVlIvIlMGbv2SoijP9xP4bPflwoUPV+gX4o.
- Are you sure you want to continue connecting (yes/no)? no
来源: http://www.bubuko.com/infodetail-3466790.html