Skip to main content
1 of 2
bpathak
  • 81
  • 1
  • 1

First install the sshPass sudo apt-get install sshpass

Then create an alias in .bashrc file as

alias sshLogin='sshpass -p <your ssh password> ssh username@remote_host'

Now reload your changed .bashrc file by source ~/.bashrc

Your are done now.

Now you can run the ssh using the above created alias sshLogin in terminal.

bpathak
  • 81
  • 1
  • 1