To use sftp in a script without user interaction (non-interactive). For example to login to an anonymous ftp server and not have to manually.
To use sftp in a script without user interaction (non-interactive). For example to login
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
On your computer
press the enter key at every prompt
you will get 2 files
id_dsaandid_dsa.pubuse scp or other utility to copy file to your serverOn your server
Add the new key to the file ~/.ssh/authorized_keys.
Finally change the access modes;
Verify that access mode is correct for ~
if not, you can use
to correct your home access.
Logout and login again