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 ~]#

 

posted on 2019-08-09 13:03  Aggy梁工  阅读(2830)  评论(0编辑  收藏  举报