博客 > 【Plesk經(jīng)驗(yàn)分享】無法通過SSH以某用戶的身份連接服務(wù)器
瀏覽量:6494次評論:0次
作者:Christina時(shí)間:2019-09-06 06:11:37
適用版本:
Plesk for Linux
問題
無法以該類用戶身份(即有權(quán)限訪問 chrooted環(huán)境 /bin/bash (chroot)的用戶)通過SSH訪問服務(wù)器:連接關(guān)閉。
已核實(shí)域名的系統(tǒng)用戶有訪問Plesk中 /bin/bash (chrooted) 環(huán)境的權(quán)限:
?
下面的錯誤持續(xù)在 /var/log/auth.log 中出現(xiàn):
sshd[]: pam_unix(sshd:session): session opened for user test by (uid=0)
systemd-logind[]: New session 11091 of user test.
systemd: PAM unable to dlopen(pam_unix.so): /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /lib/x86_64-linux-gnu/libcrypt.so.1)
systemd: PAM adding faulty module: pam_unix.so
systemd: PAM unable to dlopen(pam_plesk.so): /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /lib/x86_64-linux-gnu/libcrypt.so.1)
systemd: PAM adding faulty module: pam_plesk.so
sshd[]: pam_unix(sshd:session): session closed for user test
systemd-logind[]: Removed session 11091.
Chrooted模板中的libc.so.6版本不匹配:
# /var/www/vhosts/chroot/lib/libc.so.6 --version | grep version
GNU C Library (Debian GLIBC 2.25-5) stable release version 2.25, by Roland McGrath et al.
Compiled by GNU CC version 6.4.0 20171206.
. . .
# /var/www/vhosts/chroot/lib/x86_64-linux-gnu/libc.so.6 --version | grep version
GNU C Library (Debian GLIBC 2.19-18+deb8u10) stable release version 2.19, by Roland McGrath et al.
Compiled by GNU CC version 4.8.4.
. . .
原因
libc.so.6共享庫的版本在chrooted模板子目錄中不匹配。
解決方案
1. 通過SSH連接服務(wù)器。
2. 使用文件的新版本替換舊版本。
# mv /var/www/vhosts/chroot/lib/x86_64-linux-gnu/libc.so.6 /root/libc.so.6_bak_from_x86_64-linux-gnu
# cp /var/www/vhosts/chroot/lib/libc.so.6 /var/www/vhosts/chroot/lib/x86_64-linux-gnu/libc.so.6
相關(guān)文章推薦
2025-06-03 16:11:30
2025-05-29 16:58:20
2025-05-28 15:34:20
2025-05-27 17:20:38
2025-05-27 11:53:22
熱門工具
標(biāo)簽選擇
閱讀排行
我的評論
還未登錄?點(diǎn)擊登錄