国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 服務(wù)器 > Web服務(wù)器 > 正文

ubuntu 安裝openssh服務(wù)器的教程詳解

2024-09-01 13:48:45
字體:
供稿:網(wǎng)友

1.安裝openssh 首先得安裝 openssl 和zlib

安裝openssl ---下載openssl-1.0.1j.tar.gz,解壓到/usr/openssl/目錄下進(jìn)入解壓目錄 執(zhí)行./config -fPIC 如下圖

ubuntu,openssh

安裝zlib---下載zlib-1.2.8.tar.gz解壓到/usr/zlib/目錄下

執(zhí)行./configure make 和 make install命令 ok

2.下載openssh.tar.gz包解壓放在/usr/openssh/目錄下 解壓 如圖

ubuntu,openssh

執(zhí)行 ./configure 之后部分編譯如下 可以看到 openssh 的配置文件放在了 /usr/local/etc下注意 :一般情況下在/etc/ssh目錄下

OpenSSH has been configured with the following options:User binaries: /usr/local/binSystem binaries: /usr/local/sbinConfiguration files: /usr/local/etcAskpass program: /usr/local/libexec/ssh-askpassManual pages: /usr/local/share/man/manXPID file: /var/runPrivilege separation chroot path: /var/empty

沒有--with-ssl-dir=/usr/local/ssl可能會(huì)報(bào) configure: error: OpenSSL version header not found 執(zhí)行make 和 make install 命令 報(bào)錯(cuò):Privilege separation user sshd does not exist 解決:在/etc/passwd 中加入: sshd:x:74:74:Privilege-separatedSSH:/var/empty/sshd:/sbin/nologin 再次make install 編譯安裝成功。

openssh 默認(rèn)安裝在/usr/local/sbin/目錄下如圖

ubuntu,openssh

開啟ssh服務(wù)

ubuntu,openssh

注意要按照絕對(duì)路徑開啟ssh服務(wù)否則報(bào)錯(cuò)

查看ssh是否啟動(dòng)成功

ubuntu,openssh

通過putty連接服務(wù)器

ubuntu,openssh打開

ubuntu,openssh

打開

連接登陸成功

通過ssh遠(yuǎn)程登陸

ubuntu,openssh

ubuntu,openssh

報(bào)錯(cuò) Server responded "Algorithm negotiation failed" 原因 客戶端與服務(wù)端的壓縮方式不一樣

解決方法 修改ssh的配置文件一般在/etc/ssh/sshd_config 但是我這里是在/usr/local/etc/sshd_config下打死

在配置文件中添加:

Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,arcfour128,arcfour256,arcfour,blowfish-cbc,cast128-cbcMACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-sha1-96,hmac-md5-96KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1,curve25519-sha256@libssh.org

ubuntu,openssh

重啟sshd服務(wù)后,即可正常連接,如下圖。

ubuntu,opensshubuntu,openssh

點(diǎn)擊yes輸入密碼

ubuntu,openssh

點(diǎn)擊ok

ubuntu,openssh

成功

設(shè)置 ssh開機(jī)啟動(dòng),編輯/etc/rc.local文件

ubuntu,openssh

putty.exe下載地址

windows ssh 客戶端下載地址

openssh-7.2p2.tar.gz 下載地址

openssh-server.deb 32位下載地址

以上所述是小編給大家介紹的ubuntu 安裝openssh服務(wù)器的教程詳解,希望對(duì)大家有所幫助,如果大家有任何疑問請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)VEVB武林網(wǎng)網(wǎng)站的支持!


發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 巴林左旗| 昌宁县| 西盟| 米林县| 武邑县| 阿拉善盟| 云和县| 民乐县| 东宁县| 金川县| 高淳县| 孟州市| 楚雄市| 丹凤县| 迭部县| 江孜县| 北碚区| 信宜市| 定边县| 台江县| 新干县| 开封市| 绍兴县| 绥阳县| 邳州市| 游戏| 故城县| 梁河县| 文安县| 苍溪县| 宜兴市| 辉南县| 赤壁市| 华亭县| 宜宾县| 荔浦县| 会宁县| 大新县| 天津市| 福州市| 清流县|