Go Back   Web Server Hosting Forum by BODHost > Support > Linux Server Hosting
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 03-07-08, 06:42
BOD Member
 
Join Date: Mar 2006
Location: Scotland
Posts: 201
Default SSH to your server without password

SSH Key Generation and Authentication
=========================
First of all you will have to generate SSH Key ( the private key ) on your linux local computer and then update your remote linux computer or server with the authorized_keys ( the public key ).

Inorder,to generate SSH Key on your Linux Web Server system you can follow the below steps:-

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

2.Now 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 Keypair. You can find all the newly generated files in your .ssh folder.

# ls
id_rsa id_rsa.pub known_hosts

Now you need to copy the *.pub file to your remote computer or server.

SSH Key Authentication
===============

Copy the file id_rsa.pub to your web server and save it as authorized_keys under /home/user-name/.ssh/ .
Reply With Quote
  #2 (permalink)  
Old 03-07-08, 09:01
Moderator
 
Join Date: Oct 2005
Posts: 346
Default

However, make sure you allow only few IPs to access to SSH keys too.

That will definitely help to enhance security. ;)
Reply With Quote
  #3 (permalink)  
Old 03-09-08, 09:08
sam sam is offline
BOD Member
 
Join Date: Jul 2007
Posts: 141
Send a message via Yahoo to sam
Default

Great!!!
I follow your post and it works,I am interested in accessing the ssh-server like rsh without any type of authentication.
Reply With Quote
  #4 (permalink)  
Old 03-09-08, 18:57
Moderator
 
Join Date: Oct 2005
Posts: 346
Default

Not sure,

Is this something relating Suse-linux ?
Reply With Quote
  #5 (permalink)  
Old 03-10-08, 06:54
BOD Member
 
Join Date: Oct 2005
Posts: 117
Default

Can anyone explain to me what is Suse-linux?
Reply With Quote
  #6 (permalink)  
Old 03-11-08, 05:16
BOD Member
 
Join Date: Mar 2006
Location: Scotland
Posts: 201
Default

SuSE is an acronym of "Software und System Entwicklung" (Software and System Development)

It is founded by German Unix consulting company in 1992. In 1994, it released S.u.S.E. Linux 1.0, which was based on Softlanding Linux System (SLS) and Slackware Linux.
Reply With Quote
  #7 (permalink)  
Old 03-11-08, 09:45
BodShane's Avatar
Chief Operating Officer
 
Join Date: Dec 2006
Posts: 1,087
Send a message via AIM to BodShane Send a message via MSN to BodShane
Default

Well, this is in relation to Suse-linux too.
__________________
Redundant Dedicated Server Hosting Solutions Only at BODHost
24x7 Toll-Free ph. : +1. 866-662-0909
Email : sales@bodhost.com | MSN : sales@bodhost.com
Reply With Quote
  #8 (permalink)  
Old 03-12-08, 06:19
BOD Member
 
Join Date: Nov 2005
Location: New Mexico
Posts: 273
Default

If you want to enable remote connections to the server you won't require a password, do not enter a passphrase. If you enter a non-empty passphrase, when connecting to the remote server you will be asked for the passphrase instead of the password!

Append the public key to the file authorized_keys2:

server1:~/.ssh> cat id_dsa.pub >> authorized_keys2
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 02:45.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.