SSH(Secure Shell)

usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec] [-D [bind_address:]port] [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11] [-i identity_file] [-L [bind_address:]port:host:hostport] [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port] [-Q cipher | cipher-auth | mac | kex | key] [-R [bind_address:]port:host:hostport] [-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]] [user@]hostname [command]

-l: 用户名
-p: 主机端口,默认2


用户(user)远程登录主机

$ ssh -p 22 [email protected]
$ ssh -p 22 -l user 10.10.92.111 #user是服务器用户名

本地用户名登录时可以省略用户名

$ ssh -p 22 10.10.92.111

你可能感兴趣的:(SSH(Secure Shell))