Changes

From SME Server
Jump to navigationJump to search
m
no edit summary
Line 1: Line 1: −
27th December 2003 Ian Wells
+
Extracted From: http://www.wellsi.com/sme/ssh/ssh.html
 +
 
 +
Author: Ian Wells (27th December 2003)
 +
 
    
== Introduction ==
 
== Introduction ==
Line 57: Line 60:  
   ssh-keygen -t rsa
 
   ssh-keygen -t rsa
   −
Generating public/private rsa key pair.
+
  Generating public/private rsa key pair.
Enter file in which to save the key (/home/e-smith/files/users/dummy/.ssh/id_rsa): ''[Enter to accept default]''
+
  Enter file in which to save the key (/home/e-smith/files/users/dummy/.ssh/id_rsa): ''[Enter to accept default]''  
Created directory '/home/e-smith/files/users/dummy/.ssh'.
+
  Created directory '/home/e-smith/files/users/dummy/.ssh'.  
Enter passphrase (empty for no passphrase): ''[Your passphrase]''
+
  Enter passphrase (empty for no passphrase): ''[Your passphrase]''  
Enter same passphrase again: ''[Your passphrase]''
+
  Enter same passphrase again: ''[Your passphrase]''  
Your identification has been saved in /home/e-smith/files/users/dummy/.ssh/id_rsa.
+
  Your identification has been saved in /home/e-smith/files/users/dummy/.ssh/id_rsa.  
Your public key has been saved in /home/e-smith/files/users/dummy/.ssh/id_rsa.pub.
+
  Your public key has been saved in /home/e-smith/files/users/dummy/.ssh/id_rsa.pub.  
The key fingerprint is:
+
  The key fingerprint is:  
aa:bb:cc:dd:ee:ff:aa:bb:cc:dd:ee:ff:aa:bb:cc:dd dummy@gatekeeper
+
  aa:bb:cc:dd:ee:ff:aa:bb:cc:dd:ee:ff:aa:bb:cc:dd dummy@gatekeeper
    
=== On RedHat 8.0 ===
 
=== On RedHat 8.0 ===
Line 74: Line 77:  
   ssh-keygen -t rsa '''-C dummy@rh8'''
 
   ssh-keygen -t rsa '''-C dummy@rh8'''
   −
Generating public/private rsa key pair.
+
  Generating public/private rsa key pair.
Enter file in which to save the key (/home/dummy/.ssh/id_rsa):
+
  Enter file in which to save the key (/home/dummy/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):   
+
  Enter passphrase (empty for no passphrase):   
Enter same passphrase again:                   
+
  Enter same passphrase again:                   
Your identification has been saved in /home/dummy/.ssh/id_rsa.
+
  Your identification has been saved in /home/dummy/.ssh/id_rsa.
Your public key has been saved in /home/dummy/.ssh/id_rsa.pub.
+
  Your public key has been saved in /home/dummy/.ssh/id_rsa.pub.
The key fingerprint is:
+
  The key fingerprint is:
aa:bb:cc:dd:ee:ff:aa:bb:cc:dd:ee:ff:aa:bb:cc:dd '''dummy@rh8'''
+
  aa:bb:cc:dd:ee:ff:aa:bb:cc:dd:ee:ff:aa:bb:cc:dd '''dummy@rh8'''
    
== Installing the Public Key onto the Server ==
 
== Installing the Public Key onto the Server ==
Line 122: Line 125:     
*Open a PuTTY terminal to the server
 
*Open a PuTTY terminal to the server
*Open the $HOME/.ssh/authorized_keys file with your favourite test editor (vi, pico etc)
+
*Open the $HOME/.ssh/authorized_keys file with your favourite text editor (vi, pico etc)
 
*Paste in the public key from the clipboard
 
*Paste in the public key from the clipboard
   Line 160: Line 163:  
When starting the PuTTY terminal the following is shown. You will need to enter the passphrase, if one was set.
 
When starting the PuTTY terminal the following is shown. You will need to enter the passphrase, if one was set.
   −
Using username "dummy".
+
Using username "dummy".
Authenticating with public key "dummy@homepc"      '''Using the private key generated on my windows machine'''
+
Authenticating with public key "dummy@homepc"      '''Using the private key generated on my windows machine'''
Passphrase for key "dummy@homepc":                 
+
Passphrase for key "dummy@homepc":                 
Welcome to the Mitel Networks SME Server.
+
Welcome to the Mitel Networks SME Server.
   −
Using username "dummy".
+
Using username "dummy".
Authenticating with public key "dummy@gatekeeper" '''Using the private key generated on my SME Server'''
+
Authenticating with public key "dummy@gatekeeper" '''Using the private key generated on my SME Server'''
Passphrase for key "dummy@gatekeeper":
+
Passphrase for key "dummy@gatekeeper":
Welcome to the Mitel Networks SME Server.
+
Welcome to the Mitel Networks SME Server.
    
=== In use with OpenSSH ===
 
=== In use with OpenSSH ===
Line 180: Line 183:  
   bash-2.05a$
 
   bash-2.05a$
    +
 +
== Changes on remote-access panel ==
 +
-access SERVER-MANAGER
 +
-click REMOTE ACCESS (on left-hand side)
 +
-change "Secure Shell Access" to ALLOW PUBLIC ACCESS
 +
-change "Allow administrative command line..." to YES
 +
-change "Allow secure shell using..." to NO
    
== Further Information ==
 
== Further Information ==
Line 205: Line 215:  
You can change the passphrase at any time by using the -p option of ssh-keygen.
 
You can change the passphrase at any time by using the -p option of ssh-keygen.
   −
bash-2.05a$ ssh-keygen -p
+
  ssh-keygen -p
Enter file in which the key is (/home/e-smith/files/users/dummy/.ssh/id_rsa): [Enter to accept default key file]
+
 
Enter old passphrase: [Old passphrase]
+
Enter file in which the key is (/home/e-smith/files/users/dummy/.ssh/id_rsa): '''[Enter to accept default key file]'''
Key has comment '/home/e-smith/files/users/dummy/.ssh/id_rsa'
+
Enter old passphrase: '''[Old passphrase]'''
Enter new passphrase (empty for no passphrase): [New passphrase]
+
Key has comment '/home/e-smith/files/users/dummy/.ssh/id_rsa'
Enter same passphrase again: [New passphrase]
+
Enter new passphrase (empty for no passphrase): '''[New passphrase]'''
Your identification has been saved with the new passphrase.
+
Enter same passphrase again: '''[New passphrase]'''
 +
Your identification has been saved with the new passphrase.
 +
 
 +
'''PuTTY'''
   −
PuTTY
   
To change the passphrase of a PuTTY key use PuTTYgen.
 
To change the passphrase of a PuTTY key use PuTTYgen.
   −
  1. Load the Private Key
+
1. Load the Private Key
  2. Type the new passphrase into Key Passphrase and Confirm Passphrase
+
2. Type the new passphrase into Key Passphrase and Confirm Passphrase
  3. Save the Private Key
+
3. Save the Private Key
    
Copyright © 2003 Ian Wells : The original can be found from http://www.wellsi.com/sme : Please send additions & corrections to me.
 
Copyright © 2003 Ian Wells : The original can be found from http://www.wellsi.com/sme : Please send additions & corrections to me.
 +
 +
----
    
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Text and no Back-Cover Text. A copy of the GNU Free Documentation License is available from the Free Software Foundation at http://www.fsf.org/copyleft/fdl.html.
 
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Text and no Back-Cover Text. A copy of the GNU Free Documentation License is available from the Free Software Foundation at http://www.fsf.org/copyleft/fdl.html.
 +
 +
----
 +
[[Category:Howto]]
 +
[[Category:Administration:Remote Access]]

Navigation menu