如何让ssh-copy-id使用除了22端口之外的其他端口?
我尝试使用-p参数,但是出现了以下错误:
我知道这个端口很好,因为我连接到了该端口上的服务器。
我尝试使用-p参数,但是出现了以下错误:
ssh-copy-id -p XXX XXXX@XX.XX.XX.XX
Bad port 'umask 077; test -d ~/.ssh || mkdir ~/.ssh ; cat >> ~/.ssh/authorized_keys'
我知道这个端口很好,因为我连接到了该端口上的服务器。