Reputation: 904
I am trying to do a shell script that can connect to a remote machine via ssh
then problem is that I can relly on keys and stuff like that. I just want to add the hostname, user and pass and execute some commands... can someone guide me on that path?
Upvotes: 0
Views: 410
Reputation: 4786
ssh-keygen -t rsa -b 4096
ssh-copy-id [email protected]
ssh [email protected] 'ls -la ~ ; pwd ; uname -a '
Upvotes: 0