Create SSH keys for authentication between source and target servers. Read more about this here
Creates the ability to auto-login via ssh between source and target server accounts in Linux. Your source account is your current login and your target account is specified as a parameter to the script. Note this will require multiple password logins to the target server to complete the setup
Simple key setup. Here without a target username specified it assumes your existing user ID
[[email protected] ~/]$ ./ssh_key_gen.sh bar.com
#<you'll enter target pw multiple times here>
[[email protected] ~/]$ ssh bar.com
[[email protected] ~/]$
Specify a different username for target server
[[email protected] ~/]$ ./ssh_key_gen.sh [email protected]
#<you'll enter target pw multiple times here>
[[email protected] ~/]$ ssh [email protected]
[[email protected] ~/]$