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