SSH 使用

首先,查看SSH有哪些参数。如下:
usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
           [-D [bind_address:]port] [-e escape_char] [-F configfile]
           [-i identity_file] [-L [bind_address:]port:host:hostport]
           [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
           [-R [bind_address:]port:host:hostport] [-S ctl_path]
           [-W host:port] [-w local_tun[:remote_tun]]
           [user@]hostname [command]


1、错误写法:
ssh -D [192.168.1.81:]22

正确写法应为:
ssh -D 22


2、错误写法:
ssh -b 192.168.1.81 -D 22 -l localhost

正确写法应为:
ssh 192.168.1.81 -D 22 -l shenzhen


3、错误写法:
ssh 192.168.1.81:22 -l shenzhen

正确写法应为:
ssh 192.168.1.81 -D 22 -l shenzhen

你可能感兴趣的:(ssh)