Go Back   HostV Community - VPS Hosting Forums > HostV Support > HOW-TOs

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-15-2008, 07:36 AM
Member
 
Join Date: Dec 2007
Posts: 92
Default How to SSH to your remote web server without password ?

You need to generate SSH Key ( the private key )on your linux local computer and then update remote linux computer or server with the authorized_keys
(the public key).

1. Check if .ssh folder already exist under your home directory
(/home/user-name/.shh ).
If not create a folder .ssh

# mkdir .ssh


2. Generate or create SSH key run ssh-keygen command.

# ssh-keygen -t rsa

Press enter for all the below options to save the default settings:


-> Enter file in which to save the key (/Users/exampleuser/.ssh/id_rsa)

-> Enter passphrase (empty for no passphrase)

-> Enter same passphrase again

Now you have created the key pair.You can find all the newly generated files in your .ssh folder.

# ls

id_rsa id_rsa.pub known_hosts

you need to copy the *.pub file to your remote computer or server. Copy the file id_rsa.pub to your web server and save it as authorized_keys under

/home/user-name/.ssh/



Restart sshd.Thats it !!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 10:18 AM.


Powered by: vBulletin
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15