尝试连接远程服务器时 ssh 选项非法

尝试连接远程服务器时 ssh 选项非法

尝试从我的 macbook pro ssh 到远程服务器,

ssh ayan@服务器IP地址

出现以下错误

ssh: illegal option -- ?
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 [argument ...]]

我无法找到此错误的根源。我删除了整个~/.ssh/*目录,但实际上后面的任何参数ssh都会引发错误。如果我尝试不带任何以开头的参数运行 ie ,它会要求输入密码,但之后它不会连接并不断重复要求输入密码。ssh [email protected]-

相关内容