You can always configure passwordless ssh in order to transfer files using sftp without user being asked for a password. But if its not allowed to configure a passswordless ssh, there is a way to automate sftp file transfers. It can be achieved by using ‘expect‘ command provided by the tcl shell. For the expect […]
Archives for March 2017
How to setup passwordless SSH login in Linux
Here is a short note on configuring passwordless logins between 2 Linux systems. Process basically involves generating a public authentication key and appending it to the remote hosts ~/.ssh/authorized_keys file. Generate authentication key If an SSH authentication-key file does not exist, generate one by running the ssh-keygen command. When prompted for a passphrase, use a […]