About Syngin

Syngin's Blog:
Blog Index

Previous Blog Posts:

  • Dr. Suess Meets the Information Age
  • Linux Server Backups: The Essential List of Items
  • If Architects had to work like Programmers
  • Artistic Blocs
  • Online Contract Work Web Sites
  • MySQL Canada Provinces Table (SQL)
  • Temperamental Hard Drives

     

    Blog Powered by:
    Powered by Blogger



    Hosted by:

    Igloo Computing

     
    Syngin's_Blog:  
     
    General musings of the PHP Poet, Syngin.


    Wednesday, September 14, 2005

    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.

    4 Comments:
    lewislane1818 said...

    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

    waltergibson4704 said...

    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

    travisharolds4141275437 said...

    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.

    kf5cgbm01z said...

    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

     

     
    Home