I usually remote login to the server at my school. I have a user name and password. The command is 'ssh -l username -p port machineName'. (username is mine, port is a number and machineName is the machines in the school) I assigned this command to an alias called log but then when i log in it always asks me for a password. Is there any way I can make my alias enter the password after the command too?
SSH doesn't let you pass a password, as it would be considered insecure (you should use Public Keys instead, but the school would probably have to set it up on their end too).
PuTTY allows a password to be passed from the command-line:
and there's also SSHPass:
If it is enabled for your
Search the net with the search phrase, "generate rsa keys pairs ssh" to find a plethora of pages which describe the process. Here is just one such link.
I typically do not use a pass phrase. I'll let other commentators provide any justification to do the opposite.
type in your password for the last time. Now, you should be able to
Please note that the
On step , just accept the default entry for each question, but it would be worth-while to learn what the questions mean.