putty/xshell/Secure CRT遠程工具詳解

linux服務器中配置命令:linux

[root@localhost ~]# mkdir .sshshell

[root@localhost ~]# chmod 700 .ssh/ ====>>也能夠不設置.ssh權限,設置autherized_keys權限爲600vim

[root@localhost ~]# vim .ssh/authorized_keys ====>>.ssh/autherized_keys這個也能夠命名爲其餘名字,須要在sshd配置文件/etc/ssh/sshd_config中修改服務器

[root@localhost ~]# setenforce 0ssh

客戶端配置:工具

putty:.net

1:putty下載到官網下載完整安裝包get

2n:安裝putty相關軟件,並運行puttygeit

3:點擊Generate生成補丁,注:鼠標在此框中不停晃動以加快速度。io

A:下圖爲公鑰,複製到linux服務器中/root/.ssh/authorized_keys中保存

B:Key comment 此項能夠自定義 登陸服務器時顯示的key名

C:Key passphrase以及Confirm passphrase 設置遠程密鑰登陸的密碼

D:save public key 以及Save private key 保存公鑰以及私鑰到電腦中

 

4:打開putty設置密鑰登陸:

 

5:返回Session保存打開linux。

 

Xshell:

1:打開xshell 選擇工具-新建用戶密鑰生成嚮導

2:選擇RSA 以及 2048

3:生成公鑰,複製公鑰到/root/.ssh/authorized_keys裏,「保存爲文件」能夠另存公鑰到計算機,最後點擊完成

4:保存私鑰,「導出」能夠另存私鑰到計算機

5:xshell中新建,並用私鑰認證

6:肯定保存便可打開使用

 

SecureCRT:

1:打開SecureCRT生成公鑰

 

2:把Identity.pub的公鑰複製到/root/.ssh/authorized_keys裏

3:選擇PublicKey認證

 

4:保存後便可打開使用

相關文章
相關標籤/搜索