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

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 2175 | 回復(fù): 0
打印 上一主題 下一主題

為ssh加個證書 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2009-11-14 16:15 |只看該作者 |倒序瀏覽

Using username "root".
Authenticating with public key "imported-openssh-key"
Passphrase for key "imported-openssh-key":
Last login: Mon Nov 9 09:54:25 2009 from 192.168.3.135
OpenBSD 4.6 (GENERIC) #58: Thu Jul 9 21:24:42 MDT 2009
Welcome to OpenBSD: The proactively secure Unix-like operating system.
Please use the sendbug(1) utility to report bugs in the system.
Before reporting a bug, please try to reproduce it with the latest
version of the code. With bug reports, please try to ensure that
enough information to reproduce the problem is enclosed, and if a
known fix for it exists, include that as well.
10:11AM up 42 mins, 3 users, load averages: 0.12, 0.09, 0.08
USER TTY FROM LOGIN@ IDLE WHAT
root C0 - 9:29AM 20 -bash
root p0 192.168.3.135 9:50AM 0 -bash
root p1 192.168.3.135 10:11AM 0 w
   November 2009
Su Mo Tu We Th Fr Sa
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
[root@liuqi ~]#
用證書登陸
首先生成一個公鑰和一個私鑰
[root@liuqi ~]#ssh-keygen -b 1024 -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/root/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_dsa.
Your public key has been saved in /root/.ssh/id_dsa.pub.
The key fingerprint is:
ba:71:52:87:11:cd:74:8a:bc:91:ba:a3:51:af:95:77 root@liuqi.cutbag
The key
然后做一個ssh服務(wù)端的公鑰證書
cat id_rsa.pub > authorized_keys
接著配置一下ssh服務(wù)配置文件/etc/ssh/sshd_config
把如下幾句注釋掉的內(nèi)容打開
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
然后將私鑰id_rsa文件copy到windows里,把內(nèi)容copy到一個新的文本文件里。
然后在windows下用puttygen生成新文件,就可以了


本文來自ChinaUnix博客,如果查看原文請點:http://blog.chinaunix.net/u3/101042/showart_2094638.html
您需要登錄后才可以回帖 登錄 | 注冊

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

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(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
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP