解决BT5不能使用putty连接问题

本文详细介绍了如何在Linux环境下生成SSH密钥对,并通过init.d脚本或service命令进行初始化,确保安全的SSH连接。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

root@bt:~# cd /etc/ssh
root@bt:/etc/ssh# sshd-generate
Generating public/private rsa1 key pair.
Your identification has been saved in /etc/ssh/ssh_host_key.
Your public key has been saved in /etc/ssh/ssh_host_key.pub.
The key fingerprint is:
fb:10:bb:82:1d:4e:5d:63:50:49:01:f5:70:f1:ad:80 root@bt
The key's randomart image is:
+--[RSA1 2048]----+
|        .=*oo.   |
|        . .= . . |
|         .E o . .|
|          +  . . |
|       .So .  .  |
|      o .+       |
|     = .+        |
|    . +  +       |
|       .. .      |
+-----------------+
Generating public/private rsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_rsa_key.
Your public key has been saved in /etc/ssh/ssh_host_rsa_key.pub.
The key fingerprint is:
82:9b:d5:14:d8:ae:1d:f5:11:b0:71:16:8d:9b:6b:1e root@bt
The key's randomart image is:
+--[ RSA 2048]----+
|       o. o.==   |
|      . ...=o .  |
|       ..... +   |
|     . oo   +    |
|    . ooS.   .   |
|     +...   E    |
|    o      o .   |
|            .    |
|                 |
+-----------------+
Generating public/private dsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_dsa_key.
Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub.
The key fingerprint is:
3b:ab:8b:98:00:07:e3:b1:43:ac:eb:7f:4d:0e:51:73 root@bt
The key's randomart image is:
+--[ DSA 1024]----+
|                 |
|.      o E       |
|o+    . o        |
|+oo  .           |
|o+.   . S        |
|.o.  . . .       |
|o     = o        |
|.. o o o o       |
| .+.o oo.        |
+-----------------+
root@bt:/etc/ssh# /etc/init.d/ssh start
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service ssh start

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start ssh
ssh start/running, process 6267

转载于:https://www.cnblogs.com/xunbu7/p/3450447.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值