Linux: Create a Secure Copy Tunnel Between 2 systems with no password
Let us assume that you are setting up a secure copy tunnel between 2 machines: local and remote. The first thing to do is ensure that ssh and openssl are installed. For our purpose, the local machine is the machine doing the copying to the remote host.
Local machine setup:
1. cd into the .ssh directory in your users home directory (ie. cd /home/syngin/.ssh)(If this directory does not exist yet, try ssh-ing into the remote host from the command line and it should be created for you)
2. ssh-keygen -t rsa (This might ask some strange questions. Be sure to choose no passphrase. Two files will be created: id_rsa and id_rsa.pub)
3. scp id_rsa.pub user@remote-host.com:.ssh/authorized_keys (This will copy your public key to the remote host)(You may be prompted for the remote users password)
4. Test for success: ssh user@remote-host.com You should now be logged in without a password.
Remember that this is valid for user to user only (I believe) so make sure you set up any automated copying in the specific user’s crontab or under that user in the main crontab.
Local machine setup:
1. cd into the .ssh directory in your users home directory (ie. cd /home/syngin/.ssh)(If this directory does not exist yet, try ssh-ing into the remote host from the command line and it should be created for you)
2. ssh-keygen -t rsa (This might ask some strange questions. Be sure to choose no passphrase. Two files will be created: id_rsa and id_rsa.pub)
3. scp id_rsa.pub user@remote-host.com:.ssh/authorized_keys (This will copy your public key to the remote host)(You may be prompted for the remote users password)
4. Test for success: ssh user@remote-host.com You should now be logged in without a password.
Remember that this is valid for user to user only (I believe) so make sure you set up any automated copying in the specific user’s crontab or under that user in the main crontab.






I read over your blog, and i found it inquisitive, you may find My Blog interesting. My blog is just about my day to day life, as a park ranger. So please Click Here To Read My Blog
I read over your blog, and i found it inquisitive, you may find My Blog interesting. So please Click Here To Read My Blog
http://pennystockinvestment.blogspot.com
Get any Desired College Degree, In less then 2 weeks.
Call this number now 24 hours a day 7 days a week (413) 208-3069
Get these Degrees NOW!!!
"BA", "BSc", "MA", "MSc", "MBA", "PHD",
Get everything within 2 weeks.
100% verifiable, this is a real deal
Act now you owe it to your future.
(413) 208-3069 call now 24 hours a day, 7 days a week.
hey, I just got a free $500.00 Gift Card. you can redeem yours at Abercrombie & Fitch All you have to do to get yours is Click Here to get a $500 free gift card for your backtoschool wardrobe
2:22 PM
5:15 AM
8:05 AM
12:44 AM
Post a Comment
Home