I have a public and private key in X:\secure. Straight ssh
with the private key works and I connect okay:
ssh -i X:\secure\id_rsa remoteuser@remote.server.com
The remote server is all set up for ssh and has the public key from X:\secure\id_rsa.pub added to /etc/ssh/authorized_keys/remoteuser.
However, when I try to send a file over using
scp somefile.txt -i X:\secure\id_rsa remoteuser@remote.server.com:~
I get prompted for password.
Question: Is there a way to scp a file over seamlessly, without a prompt, just like ssh connection is established using a private key?