Unix Study之--AIX安装和配置SSH

本文发布时间: 2019-Mar-22
Unix Study之--AIX安装和配置SSH系统环境:AIX 6100-09(SP3) 默认AIX系统不安装ssh,需要另外自定义安装,ssh有两个软件包组成(openssl 和 openssh),这两个软件包解压后,通过smit就可以安装。一、安装ssh[root@aix209 ssh]#lsOpenSSH_5.8.0.6102.tar.Z openssl-0.9.8.1802.tar.Z ssh.txt[root@aix209 ssh]#uncompress OpenSSH_5.8.0.6102.tar.1)解压[root@aix209 ssh]#uncompress openssl-0.9.8.1802.tar.Z[root@aix209 ssh]#lsOpenSSH_5.8.0.6102.tar openssl-0.9.8.1802.tar ssh.txt[root@aix209ssh]#tarxvfOpenSSH_5.8.0.6102.tarxopenssh.base,6310912bytes,12326tapeblocksxopenssh.license,338944bytes,662tapeblocksxopenssh.man.en_US,153600bytes,300tapeblocksxopenssh.msg.CA_ES,20480bytes,40tapeblocksxopenssh.msg.CS_CZ,20480bytes,40tapeblocksxopenssh.msg.DE_DE,20480bytes,40tapeblocksxopenssh.msg.EN_US,17408bytes,34tapeblocksxopenssh.msg.ES_ES,19456bytes,38tapeblocksxopenssh.msg.FR_FR,20480bytes,40tapeblocksxopenssh.msg.HU_HU,21504bytes,42tapeblocksxopenssh.msg.IT_IT,19456bytes,38tapeblocksxopenssh.msg.JA_JP,24576bytes,48tapeblocksxopenssh.msg.Ja_JP,26624bytes,52tapeblocksxopenssh.msg.KO_KR,21504bytes,42tapeblocksxopenssh.msg.PL_PL,20480bytes,40tapeblocksxopenssh.msg.PT_BR,19456bytes,38tapeblocksxopenssh.msg.RU_RU,25600bytes,50tapeblocksxopenssh.msg.SK_SK,20480bytes,40tapeblocksxopenssh.msg.ZH_CN,25600bytes,50tapeblocksxopenssh.msg.ZH_TW,24576bytes,48tapeblocksxopenssh.msg.Zh_CN,21504bytes,42tapeblocksxopenssh.msg.Zh_TW,21504bytes,42tapeblocksxopenssh.msg.ca_ES,19456bytes,38tapeblocksxopenssh.msg.cs_CZ,19456bytes,38tapeblocksxopenssh.msg.de_DE,20480bytes,40tapeblocksxopenssh.msg.en_US,17408bytes,34tapeblocksxopenssh.msg.es_ES,19456bytes,38tapeblocksxopenssh.msg.fr_FR,20480bytes,40tapeblocksxopenssh.msg.hu_HU,27648bytes,54tapeblocksxopenssh.msg.it_IT,19456bytes,38tapeblocksxopenssh.msg.ja_JP,26624bytes,52tapeblocksxopenssh.msg.ko_KR,19456bytes,38tapeblocksxopenssh.msg.pl_PL,27648bytes,54tapeblocksxopenssh.msg.pt_BR,18432bytes,36tapeblocksxopenssh.msg.ru_RU,27648bytes,54tapeblocksxopenssh.msg.sk_SK,19456bytes,38tapeblocksxopenssh.msg.zh_CN,21504bytes,42tapeblocksxopenssh.msg.zh_TW,21504bytes,42tapeblocks[root@aix209ssh]#tarxvfOpenSSH_5.8.0.6102.tarxopenssh.base,6310912bytes,12326tapeblocksxopenssh.license,338944bytes,662tapeblocksxopenssh.man.en_US,153600bytes,300tapeblocksxopenssh.msg.CA_ES,20480bytes,40tapeblocksxopenssh.msg.CS_CZ,20480bytes,40tapeblocksxopenssh.msg.DE_DE,20480bytes,40tapeblocksxopenssh.msg.EN_US,17408bytes,34tapeblocksxopenssh.msg.ES_ES,19456bytes,38tapeblocksxopenssh.msg.FR_FR,20480bytes,40tapeblocksxopenssh.msg.HU_HU,21504bytes,42tapeblocksxopenssh.msg.IT_IT,19456bytes,38tapeblocksxopenssh.msg.JA_JP,24576bytes,48tapeblocksxopenssh.msg.Ja_JP,26624bytes,52tapeblocksxopenssh.msg.KO_KR,21504bytes,42tapeblocksxopenssh.msg.PL_PL,20480bytes,40tapeblocksxopenssh.msg.PT_BR,19456bytes,38tapeblocksxopenssh.msg.RU_RU,25600bytes,50tapeblocksxopenssh.msg.SK_SK,20480bytes,40tapeblocksxopenssh.msg.ZH_CN,25600bytes,50tapeblocksxopenssh.msg.ZH_TW,24576bytes,48tapeblocksxopenssh.msg.Zh_CN,21504bytes,42tapeblocksxopenssh.msg.Zh_TW,21504bytes,42tapeblocksxopenssh.msg.ca_ES,19456bytes,38tapeblocksxopenssh.msg.cs_CZ,19456bytes,38tapeblocksxopenssh.msg.de_DE,20480bytes,40tapeblocksxopenssh.msg.en_US,17408bytes,34tapeblocksxopenssh.msg.es_ES,19456bytes,38tapeblocksxopenssh.msg.fr_FR,20480bytes,40tapeblocksxopenssh.msg.hu_HU,27648bytes,54tapeblocksxopenssh.msg.it_IT,19456bytes,38tapeblocksxopenssh.msg.ja_JP,26624bytes,52tapeblocksxopenssh.msg.ko_KR,19456bytes,38tapeblocksxopenssh.msg.pl_PL,27648bytes,54tapeblocksxopenssh.msg.pt_BR,18432bytes,36tapeblocksxopenssh.msg.ru_RU,27648bytes,54tapeblocksxopenssh.msg.sk_SK,19456bytes,38tapeblocksxopenssh.msg.zh_CN,21504bytes,42tapeblocksxopenssh.msg.zh_TW,21504bytes,42tapeblocks2)通过smit安装[root@aix209 ssh]#smit installp3)查看ssh服务[root@aix209 ssh]#lssrc -a |grep sshsshd ssh 6029368 active二、配置通过ssh建立主机间的信任关系(Cluster)One node:1)建立密钥[grid@aix209 grid]$ssh-keygen -t rsaGeneratingpublic/privatersakeypair.Enterfileinwhichtosavethekey(/home/grid/.ssh/id_rsa):Createddirectory'/home/grid/.ssh'.Enterpassphrase(emptyfornopassphrase):Entersamepassphraseagain:Youridentificationhasbeensavedin/home/grid/.ssh/id_rsa.Yourpublickeyhasbeensavedin/home/grid/.ssh/id_rsa.pub.Thekeyfingerprintis:46:8c:ac:aa:82:62:b1:5e:e2:ba:ed:d5:02:5e:f5:62grid@aix209Thekey'srandomartimageis:+--[RSA2048]----+|||.o||+o||oo||.oES||o+oo||..=.o.||==o..||X=o|+-----------------+[grid@aix209 grid]$ssh-keygen -t dsaGeneratingpublic/privatedsakeypair.Enterfileinwhichtosavethekey(/home/grid/.ssh/id_dsa):Enterpassphrase(emptyfornopassphrase):Entersamepassphraseagain:Youridentificationhasbeensavedin/home/grid/.ssh/id_dsa.Yourpublickeyhasbeensavedin/home/grid/.ssh/id_dsa.pub.Thekeyfingerprintis:4a:6d:60:35:ee:1c:fe:7d:62:54:f6:31:5c:7b:4a:54grid@aix209Thekey'srandomartimageis:+--[DSA1024]----+|o..E||o...o||oo+=.||.*.+o+||.S...||.o.o||..+.||.o|||+-----------------+2)配置密钥对[grid@aix209 ~]$cd .ssh[grid@aix209 .ssh]$lsid_dsa id_dsa.pub id_rsa id_rsa.pub[grid@aix209 .ssh]$cd .. [grid@aix209 ~]$cat .ssh/id_rsa.pub >>.ssh/authorized_keys[grid@aix209 ~]$cat .ssh/id_dsa.pub >>.ssh/authorized_keys[grid@aix209 ~]$ssh aix210 cat .ssh/id_rsa.pub >>.ssh/authorized_keysThe authenticity of host 'aix210 (192.168.8.210)' can't be established.RSA key fingerprint is 65:25:9b:46:05:a4:84:73:76:d2:ba:d2:c8:a2:91:0e.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added 'aix210,192.168.8.210' (RSA) to the list of known hosts.grid@aix210's password:[grid@aix209 ~]$ssh aix210 cat .ssh/id_dsa.pub >>.ssh/authorized_keysgrid@aix210's password:[grid@aix209 ~]$scp .ssh/authorized_keys aix210:~/.sshgrid@aix210's password:authorized_keys 100% 1988 1.9KB/s 00:00 [grid@aix209 ~]$ssh aix210 dateMon Jan 5 22:24:19 CST 19703)测试信任关系[grid@aix209 ~]$ssh aix210-priv dateThe authenticity of host 'aix210-priv (10.10.10.210)' can't be established.RSA key fingerprint is 65:25:9b:46:05:a4:84:73:76:d2:ba:d2:c8:a2:91:0e.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added 'aix210-priv,10.10.10.210' (RSA) to the list of known hosts.Mon Jan 5 22:24:27 CST 1970[grid@aix209 ~]$ssh aix209-priv dateThe authenticity of host 'aix209-priv (10.10.10.209)' can't be established.RSA key fingerprint is 8f:54:98:0e:1b:c1:81:10:36:88:62:e2:20:61:16:91.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added 'aix209-priv,10.10.10.209' (RSA) to the list of known hosts.Mon Mar 28 18:39:55 CDT 2016[grid@aix209 ~]$ssh aix209 dateThe authenticity of host 'aix209 (192.168.8.209)' can't besetablished.RSA key fingerprint is 8f:54:98:0e:1b:c1:81:10:36:88:62:e2:20:61:16:91.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added 'aix209,192.168.8.209' (RSA) to the list of known hosts.Mon Mar 28 18:40:02 CDT 2016[grid@aix210 ~]$ssh aix209-priv dateThe authenticity of host 'aix209-priv (10.10.10.209)' can't be established.RSA key fingerprint is 8f:54:98:0e:1b:c1:81:10:36:88:62:e2:20:61:16:91.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added 'aix209-priv,10.10.10.209' (RSA) to the list of known hosts.Mon Mar 28 18:40:36 CDT 2016----- 至此,ssh在AIX系统上安装配置成功 !


(以上内容不代表本站观点。)
---------------------------------
本网站以及域名有仲裁协议。
本網站以及域名有仲裁協議。

2024-Mar-04 02:09pm
栏目列表