亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
12
最近訪問板塊 發(fā)新帖
樓主: jiwang1980
打印 上一主題 下一主題

大神們,ssh登錄問題求解啊~ [復制鏈接]

論壇徽章:
0
11 [報告]
發(fā)表于 2011-12-24 09:04 |只看該作者
不是權(quán)限問題,權(quán)限問題應該在/var/log/secure里面有記錄吧

我嘗試修改權(quán)限,仍需密碼

論壇徽章:
0
12 [報告]
發(fā)表于 2011-12-24 11:25 |只看該作者
換了臺虛擬機,沒有問題。
人品問題,也不想深究了,謝謝各位回復

論壇徽章:
0
13 [報告]
發(fā)表于 2011-12-26 17:21 |只看該作者
試試這個方法,我之前遇到過類似問題,應該還是目錄和文件的權(quán)限問題:

1. Create a public ssh key, if you haven’t one already.

Look at ~/.ssh. If you see a file named id_dsa.pub then you obviously already have a public key. If not, simply create one. ssh-keygen -t dsa should do the trick.

Please note that there are other types of keys, e.g. RSA instead of DSA. I simply recomend DSA, but keep that in mind if you run into errors.

2. Make sure your .ssh dir is 700:
chmod 700 ~/.ssh


3. Get your public ssh key on the server you want to login automatically.
A simple scp ~/.ssh/id_dsa.pub remoteuser@remoteserver.com: is ok.


4. Append the contents of your public key to the ~/.ssh/authorized_keys and remove it.

Important: This must be done on the server you just copied your public key to. Otherwise you wouldn’t have had to copy it on your server.

Simply issue something like ---
cat id_dsa.pub >> .ssh/authorized_keys while at your home directory.


5. Instead of steps 3 and 4, you can issue something like this:

cat ~/.ssh/id_dsa.pub | ssh -l remoteuser remoteserver.com 'cat >> ~/.ssh/authorized_keys'


6. Remove your public key from the home directory on the server.


7. Done!
You can now login:

ssh -l remoteuser remoteserver.com or ssh remoteuser@remoteserver.com

without getting asked for a password.

論壇徽章:
0
14 [報告]
發(fā)表于 2011-12-26 17:22 |只看該作者
補充一點:被遠程登錄的主機上用戶的主目錄的權(quán)限必須為755
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP