Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不想一次又一次地输入密码,因此想将其提供给命令本身。我该怎么做?
目前,我正在这样做
sshpass -p server_password port_number ssh-copy-id user@IP
它说,
sshpass: Failed to run command: No such file or directory
我哪里错了?我找到了网,它也是一样的。
您必须port_number像这样指定:
port_number
sshpass -p server_password ssh-copy-id user@IP -p port_number
您必须指定远程主机的路径: sshpass -p server_password port_number ssh-copy-id user@IP:your_path_here