Windows下ssh访问域名centos(Linux),使用域名和更改端口得配置
ssh root@192.168.28.62 //端口默认22 ssh root@xxx.com //端口默认22 , 域名xxx.com ssh -p 1122 root@xxx.com //端口1122,域名xxx.com
C:\Users\AggyLeung>ssh -J
option requires an argument -- J
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 [user@]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]
C:\Users\AggyLeung>ssh -J
option requires an argument -- J
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 [user@]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]
C:\Users\AggyLeung>ssh -p 1122 root@fg140p3g13800282.fortiddns.com
The authenticity of host '[fg140p3g13800282.fortiddns.com]:1122 ([113.110.148.108]:1122)' can't be established.
ECDSA key fingerprint is SHA256:TqkXxXd4s76lWl/BOPFX/ZnMdvHq1/v1xa+ITkVG+IQ.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[fg140p3g13800282.fortiddns.com]:1122,[113.110.148.108]:1122' (ECDSA) to the list of known hosts.
root@fg140p3g13800282.fortiddns.com's password:
Last login: Fri Aug 9 11:44:26 2019 from gateway
[root@localhost ~]#
本文来自博客园,作者:Aggy梁工,转载请注明原文链接:https://www.cnblogs.com/liangyuyue/articles/centos-ssh-fqdn.html

浙公网安备 33010602011771号