![]() | Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition | ||
|
|
![]() |
||||||||||||||
Solution Type Technical Instruction Sure Solution 1370994.1 : Sun StorageTek[TM] 5000 Series NAS: Configuring a STK 5000 NAS array for passwordless login using SSH
In this Document
Created from <SR 3-4693254971> Applies to:Sun Storage 5320 NAS Appliance - Version Not Applicable to Not Applicable [Release N/A]Sun Storage 5320 NAS Cluster - Version Not Applicable to Not Applicable [Release N/A] Sun Storage 5320 NAS Gateway - Version Not Applicable to Not Applicable [Release N/A] Sun Storage 5220 NAS Appliance - Version Not Applicable to Not Applicable [Release N/A] Sun Storage 5210 NAS Appliance - Version Not Applicable to Not Applicable [Release N/A] Information in this document applies to any platform. NAS head revision : not dependent JBODs Model : not dependent CLUSTER related : not dependent GoalConfigure the Sun StorageTek[TM] 5000 Series NAS array to allow login from a ssh client without providing a password and using public keys instead. Solution1. Telnet to the NAS array and enable the FTP service(if not already enabled). % telnet NAS-ARRAY
Trying NAS-ARRAY... Connected to NAS-ARRAY. Escape character is '^]'. password for admin access ? ********* To get to the menus, use the menu command NAS-ARRAY > load ftpd
% ssh-keygen -t rsa
Generating public/private rsa key pair. Enter file in which to save the key (/home/user/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/user/.ssh/id_rsa. Your public key has been saved in /home/user/.ssh/id_rsa.pub. The key fingerprint is: 12:23:34:45:56:67:78:89:90:0a:ab:bc:cd:de:ef:ff
No existing ssh2auth.key file on NAS
Preexisting ssh2auth.key file on NAS
The files /dvol/etc/ssh1auth.key and /dvol/etc/ssh2auth.key, when present on the NAS, each contain a list of public user ssh-keys from clients, for SSH version 1.x and 2.x of ssh respectively. These files are completely user maintained.
The keys are generated on the SSH client, and the plain-text public keys are appended to the one of these files that is appropriate to the version of SSH in use. The individual keys are separated from one another with a newline character. When editing this file, be careful not to add any extra linefeeds or keystrokes. The Sun StorageTek[TM] 5000 NAS series supports both the OpenSSH and SECSH (ssh.com) key formats.
% ftp NAS-ARRAY Connected to NAS-ARRAY. 220-Local time is now 16:20 and the system load is 0%. 220 You will be disconnected after 900 seconds of inactivity. Name (NAS-ARRAY:user): admin 331 Admin login OK. Password required. Password: 230-User admin logged in. 230 Current directory is / ftp> lcd ~/ Local directory now /home/user ftp> cd /dvol/etc 250 Changed to /dvol/etc ftp> put ssh2auth.key ftp> quit
% telnet NAS-ARRAY
Trying NAS-ARRAY... Connected to NAS-ARRAY. Escape character is '^]'. password for admin access ? ********* To get to the menus, use the menu command NAS-ARRAY > unload ftpd NAS-ARRAY > netserv enable ssh both ssh is enabled. NAS-ARRAY > exit
The netserv command can be used to configure SSH to allow access only to users with keys included in these files or to those users and users who enter the password with one of the following two settings:
netserv enable ssh both
netserv enable ssh public If new keys are copied to the Sun StorageTek NAS, the following Console/Telnet CLI command must be executed: netserv enable ssh reload
*** Checked for relevance on 13-Aug-2013 *** *** Checked for relevance on 01-Jul-2016 *** **** Checked for Relevance 04-DEC-2017 ****
Attachments This solution has no attachment |
||||||||||||||
|