I have a Linux machine, and I need to sftp to a Windows SFTP server. So for first step, I create my own id_rsa
file and the id_rsa.pub
in my Linux machine.
Then I copy the text in the id_rsa.pub
into the id_rsa.pub
in the SFTP server.
And the sftp
connection work correctly.
However, I would like to ask about the command to copy the public key from client to server. I have search in google and I get a command which is:
ssh-copy-id -i id_rsa.pub ftp_user*@10.7.8.32
But I hit the following error:
'exec' is not recognized as an internal or external command, operable program or batch file. The system cannot find the path specified.
I believe there is some command exits for this right? Instead of I copy the public key manually to the SFTP server.
The SFTP version is SFTP protocol version 3.