![power小型機(jī)AIX上ssh安裝_第1頁(yè)](http://file2.renrendoc.com/fileroot_temp3/2021-11/15/c33573c4-38f8-4555-ab53-27897ba1f433/c33573c4-38f8-4555-ab53-27897ba1f4331.gif)
![power小型機(jī)AIX上ssh安裝_第2頁(yè)](http://file2.renrendoc.com/fileroot_temp3/2021-11/15/c33573c4-38f8-4555-ab53-27897ba1f433/c33573c4-38f8-4555-ab53-27897ba1f4332.gif)
![power小型機(jī)AIX上ssh安裝_第3頁(yè)](http://file2.renrendoc.com/fileroot_temp3/2021-11/15/c33573c4-38f8-4555-ab53-27897ba1f433/c33573c4-38f8-4555-ab53-27897ba1f4333.gif)
![power小型機(jī)AIX上ssh安裝_第4頁(yè)](http://file2.renrendoc.com/fileroot_temp3/2021-11/15/c33573c4-38f8-4555-ab53-27897ba1f433/c33573c4-38f8-4555-ab53-27897ba1f4334.gif)
![power小型機(jī)AIX上ssh安裝_第5頁(yè)](http://file2.renrendoc.com/fileroot_temp3/2021-11/15/c33573c4-38f8-4555-ab53-27897ba1f433/c33573c4-38f8-4555-ab53-27897ba1f4335.gif)
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、power小型機(jī)AIX ssh安裝配置文檔文檔信息(文檔編號(hào)IBM AIX-122)文擋名稱作者電話QQpower小型機(jī)AIX ssh安裝配置文檔朱亞銘13951968365150111099文檔修訂記錄編號(hào)修訂內(nèi)容簡(jiǎn)述修訂日期修訂前版本號(hào)V1.0整體文檔的編寫2016.12.23注:技術(shù)交流郵箱 ymzhu2005目錄一、AIX 安裝并啟用openssh41.1 ssh用途41.2 安裝軟件41.3常規(guī)檢查命令6二、SSH無法登錄AIX的常見原因及解決辦法62.1、sshd子系統(tǒng)沒啟動(dòng)6如何檢查是否啟動(dòng)?7如何啟動(dòng)sshd子系統(tǒng)?72.2、沒有安裝openssh7怎么知道是否安裝了opens
2、sh?72.3、端口配置錯(cuò)誤8查看當(dāng)前端口?82.4、修改了openssh端口,但沒有重啟服務(wù)82.5、修改了openssh端口,但是端口沖突了82.6、協(xié)議不匹配9附件 相關(guān)資料91、查看ssh進(jìn)程92、重啟sshd服務(wù)93、/etc/ssh/sshd_config配置文件示例9一、AIX 安裝并啟用openssh1.1 ssh用途主要在ssh遠(yuǎn)程登錄和安裝Oracle數(shù)據(jù)庫(kù)時(shí)使用。1.2 安裝軟件在對(duì)應(yīng)的系統(tǒng)安裝盤內(nèi),有響應(yīng)的ssh安裝包,盡量使用對(duì)應(yīng)版本的ssh安裝包,不然會(huì)有首先將系統(tǒng)光盤放進(jìn)光驅(qū)內(nèi),使用命令#smitty easy_install安裝openssh.client和op
3、enssh_server這兩個(gè)軟件包重啟機(jī)器,查看openssh有沒有安裝并啟動(dòng)。一般安裝至此,就可以正常登錄到ssh界面了1.3常規(guī)檢查命令安裝過的文件集:lslpp -l | grep ssh查看ssh服務(wù):lssrc -a | grep ssh啟動(dòng)ssh服務(wù):startsrc -s sshd停止ssh服務(wù):stopsrc -s sshd二、SSH無法登錄AIX的常見原因及解決辦法2.1、sshd子系統(tǒng)沒啟動(dòng)客戶端登錄時(shí)報(bào)錯(cuò):The remote system refused the connection.如果是操作系統(tǒng)剛剛重啟,那么稍等一下,等它啟動(dòng)完成。否則,請(qǐng)檢查它是否啟動(dòng)。如何檢查
4、是否啟動(dòng)?已啟動(dòng):# lssrc -s sshdSubsystem Group PID Status sshd ssh 208930 active未啟
5、動(dòng):# lssrc -s sshd Subsystem Group PID Status sshd ssh &
6、#160; inoperative對(duì)于服務(wù)未啟動(dòng)這種問題,我們只要啟動(dòng)sshd子系統(tǒng)即可解決問題。如何啟動(dòng)sshd子系統(tǒng)?# startsrc -s sshd0513-059 The sshd Subsystem has been started. Subsystem PID is 553084.啟動(dòng)后檢查,發(fā)現(xiàn)sshd已經(jīng)啟動(dòng),如下所示:# lssrc -s sshdSubsystem Group PID
7、0; Status sshd ssh 553084 active2.2、沒有安裝openssh客戶端登錄時(shí)報(bào)錯(cuò):The remote system refused the connection.怎么知道是否安裝了openssh?方法一:lslpp# lslpp -l|grep ssh openssh.bas
8、e.client 5.2.0.5300 COMMITTED Open Secure Shell Commands openssh.base.server 5.2.0.5300 COMMITTED Open Secure Shell Server openssh.man.en_US 5.2.0.5300 COMMITTED Open Secure Shell openssh.msg.en_US
9、 5.2.0.5300 COMMITTED Open Secure Shell Messages - openssh.base.client 5.2.0.5300 COMMITTED Open Secure Shell Commands openssh.base.server 5.2.0.5300 COMMITTED Open Secure Shell Server如果沒有看到類似如上的結(jié)果,說明沒有安
10、裝。方法二: lssrc# lssrc -s sshd如果沒有任何結(jié)果,一般也說明沒安裝。方法三:smitty listsmitty list List Installed Software and Related Information List Installed Software * SOFTWARE name
11、; all 使用 /ssh在結(jié)果中找!安裝方法請(qǐng)參考:AIX6.1光盤安裝openssh2.3、端口配置錯(cuò)誤客戶端登錄時(shí)報(bào)錯(cuò): The remote system refused the connection.查看當(dāng)前端口?# cat /etc/ssh/sshd_config找到Port開頭的行,如果前面有注釋(#Port),說明使用默認(rèn)端口22,否則就是使用了Port后面那個(gè)數(shù)字端口。2.4、修改了openssh端口,但沒有重啟服務(wù)客戶端登錄時(shí)報(bào)錯(cuò):The remote system refused the conne
12、ction.這種問題一般是修改了端口后(/etc/ssh/sshd_config中的Port行),沒有重啟openssh服務(wù),重啟方法:# stopsrc -s sshd# startsrc -s sshd2.5、修改了openssh端口,但是端口沖突了癥狀:客戶端登錄時(shí)沒有反應(yīng)。我曾經(jīng)將/etc/ssh/sshd_config中的 #Port 22 改成了 Port 25 做過測(cè)試,確實(shí)客戶端沒有反應(yīng)了,后來改成 Port 29 就可以連接上了。2.6、協(xié)議不匹配客戶端登錄時(shí)報(bào)錯(cuò): The client has disconnected from the ser
13、ver. Reason:Protocol version mismatch. Required protocol version is 1.3 - 1.99. Received version was 2.0. 這是因?yàn)榭蛻舳说卿洉r(shí)選擇了ssh1協(xié)議,aix6.1安裝openssh后默認(rèn)使用2.0協(xié)議,需要客戶端登錄的協(xié)議改成ssh2即可登錄。附件 相關(guān)資料1、查看ssh進(jìn)程# ps -ef | grep sshd root 430148 159844 0 02:26:48 - &
14、#160;0:00 /usr/sbin/sshd2、重啟sshd服務(wù)# stopsrc -s sshd0513-044 The /usr/sbin/sshd Subsystem was requested to stop.# startsrc -s sshd0513-059 The sshd Subsystem has been started. Subsystem PID is 241868.3、/etc/ssh/sshd_config配置文件示例# cat /etc/ssh/sshd_config# $OpenBSD: sshd_conf
15、ig,v 1.80 2008/07/02 02:24:18 djm Exp $ # This is the sshd server system-wide configuration file. See# sshd_config(5) for more information. # This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin # The strategy used for options in the default sshd_config shipped with# O
16、penSSH is to specify options with their default value where# possible, but leave them commented. Uncommented options change a# default value. #Port 22#AddressFamily any#ListenAddress 0.0.0.0#ListenAddress : # Disable legacy (protocol version 1) support in the server for new# installa
17、tions. In future the default will change to require explicit# activation of protocol 1Protocol 2 # HostKey for protocol version 1#HostKey /etc/ssh/ssh_host_key# HostKeys for protocol version 2#HostKey /etc/ssh/ssh_host_rsa_key#HostKey /etc/ssh/ssh_host_dsa_key # Lifetime and size of epheme
18、ral version 1 server key#KeyRegenerationInterval 1h#ServerKeyBits 1024 # Logging# obsoletes QuietMode and FascistLogging#SyslogFacility AUTH#LogLevel INFO # Authentication: #LoginGraceTime 2m#PermitRootLogin yes#StrictModes yes#MaxAuthTries 6#MaxSessions 10 #RSAAuthentication yes
19、#PubkeyAuthentication yes#AuthorizedKeysFile .ssh/authorized_keys # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts#RhostsRSAAuthentication no# similar for protocol version 2#HostbasedAuthentication no# Change to yes if you don't trust /.ssh/known_hos
20、ts for# RhostsRSAAuthentication and HostbasedAuthentication#IgnoreUserKnownHosts no# Don't read the user's /.rhosts and /.shosts files#IgnoreRhosts yes # To disable tunneled clear text passwords, change to no here!#PasswordAuthentication yes#PermitEmptyPasswords no # Change to no t
21、o disable s/key passwords#ChallengeResponseAuthentication yes # Kerberos options#KerberosAuthentication no#KerberosOrLocalPasswd yes#KerberosTicketCleanup yes#KerberosGetAFSToken no # GSSAPI options#GSSAPIAuthentication no#GSSAPICleanupCredentials yes # Set this to 'yes' to en
22、able PAM authentication, account processing, # and session processing. If this is enabled, PAM authentication will # be allowed through the ChallengeResponseAuthentication and# PasswordAuthentication. Depending on your PAM configuration,# PAM authentication via ChallengeResponseAuthentication may bypass# the setting of "PermitRootLogin without-password".# If you just want the PAM account and session checks to run without# PAM authentication, then enable this but set PasswordAuthentication# and ChallengeResponseAuthentication to 'no'.#
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年流動(dòng)式空氣質(zhì)量監(jiān)測(cè)車合作協(xié)議書
- 2025年個(gè)人門面買賣合同格式版(2篇)
- 2025年個(gè)人貨車租賃合同常用版(2篇)
- 2025年九年級(jí)英語(yǔ)下學(xué)期教學(xué)工作總結(jié)(二篇)
- 2025年個(gè)人貨運(yùn)汽車租賃合同(4篇)
- 2025年個(gè)人雇傭協(xié)議參考范文(三篇)
- 2025年九年級(jí)教學(xué)管理工作總結(jié)樣本(2篇)
- 2013-2022年北京市中考真題物理試題匯編:電功和電功率章節(jié)綜合
- 2025年中介行業(yè)保密協(xié)議(五篇)
- 2025年個(gè)人成交租賃合同模板(三篇)
- 煤場(chǎng)用車輛倒運(yùn)煤的方案
- 《預(yù)防犯罪》課件
- 【企業(yè)作業(yè)成本在上海汽車集團(tuán)中的應(yīng)用研究案例7300字(論文)】
- 《民航服務(wù)溝通技巧》教案第6課巧妙化解沖突
- 化學(xué)用語(yǔ)專項(xiàng)訓(xùn)練
- 中國(guó)高血壓臨床實(shí)踐指南(2022版)解讀
- 《了凡四訓(xùn)》課件
- 醫(yī)院住院病人健康教育表
- 風(fēng)險(xiǎn)矩陣法(詳細(xì))
- 實(shí)驗(yàn)室供應(yīng)商評(píng)價(jià)的5個(gè)基本步驟
- 電力公司工程勘察設(shè)計(jì)管理辦法
評(píng)論
0/150
提交評(píng)論