I create file text.txt in /sftp_proc which just contains "this is a test"Īs support_user, I try to SFTP to toServer123 from fromServer123: sftp -oIdentityFile=./my_private_key.ppk I expect: I upload my_private_key.ppk (chmod 600) to /sftp_proc I create dir: /home/support_user/sftp_proc (chmod 700) I install the private key on the fromServer123: Ssh-rsa verylongstringoflettersandnumbersNoNewlines chmod permissions: authorized_keys (644). I create /home/paultest/.ssh/authorized_keys and add the public keyĬat /home/paultest/.ssh/authorized_keys #=>.I test that I can ssh into toServer123 as user paultest.I create a user paultest with password 'password123'.I leave the passphrase field blank and choose 'yes' when prompted about unencrypted private key.after providing the prompted random movement, I save the public and private key.I generate a public-private key pair using puttyGen: I want to SFTP a file from one server to another, using a private-key login. How can I SFTP with just the unwrapped private-key? Details: but when I try to SFTP on the command line, I'm prompted for both the non-existent passphrase and the user password. I believe the public key is installed correctly (WinSCP lets me log in with private key), and I deliberately did not create a passphrase when generating the key-pair. I want to SFTP a file from one server to another, authorizing with a private-key.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |