This site is hosted and sponsored by hyve.com specialists in Cloud Hosting UK and VMware Hosting. If you are interested in our services please call us for chat on 0800 612 2524

Auto login for ssh#

  • Login to the source ssh server via putty.
  • Generate your key pair using the following command:
$ ssh-keygen -t rsa
  • Generating public/private rsa key pair.
  • Enter file in which to save the key (/home/user/.ssh/id_rsa):
  • Don't enter a passphrase
  • Your identification has been saved in /home/user/.ssh/id_rsa
  • Your public key has been saved in /home/user/.ssh/id_rsa.pub
$ cd ~/.ssh
$ cat id_rsa.pub >> authorized_keys
$ chmod 600 authorized_keys

Open the file to get ready to cut and paste text into source server

$ vi ~/.ssh/id_rsa
  • Log out of the server and go back to your local shell
$ cd ~
$ mkdir .ssh
  • Copy the file id_rsa that was generated on the server into this directory. You can use sftp or scp for this.
$ cd .ssh
$ vi id_rsa
$ chmod 600 id_rsa
  • You should now be able to login via ssh without having to prompt for a password.

Back to Linux

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-9) was last changed on 17-Feb-2012 12:39 by Hyve Support
G’day (anonymous guest) My Prefs
  • View Page Source
  • This clear IPSec security association,
    clear ipsec sa peer X.X.X.X
    

All Pages

Page views: 1058

Private Tomcat

Linux

MySQL

Email

SQL Server

ASP

JSP

C#

Web Mail

Windows Plesk

Linux Plesk

PHP

Gaming

ASP.NET

Persits ASPUpload

Wiki Help

Referring Pages:
...nobody

JSPWiki v2.8.1