2019年2月10日 星期日

XShell SSH使用key 連線

請先 自行安裝Xshell 
安裝完成後,開啟XShell 
點選【New 
在紅框2的地方 
Name : 可自行輸入此連線的名稱 
Protocol : 可選擇連線的方式,這邊請選SSH 
Host : 輸入連線IP 
Xshell 4 (Free for Home/School) 
Edit View 
Tools Window Help 
SSI Reconnect 
New Session 2 Pro ertie 
Ca tegor y: 
Copyrig 
T ype 
XsheII : 
Not connected 
Logon Pr ompts 
L ogon Scripts 
Securi ty 
Tunneling 
RLOGIN 
Te rminal 
Keyboard 
Modes 
Advanced 
Appea rance 
Margins 
Advanced 
Trace 
Connecoon 
Protocol: 
Por t Number : 
Keep Alive 
127.0.0.1 
22 
Send keep alive messages while this session is connected 
Interval: 60 
Reconnect automabcally if connection is terminated abruptly 
Interval: 30 
Proxy Server 
Limt: O 
If your neb,Norkis configured to use a proxy server or firewall, 
select a proxy server from the list belovv. To add or remove a 
proxy server or edit its settngs, dick Browse 
Proxy Server: <None > 
xterm 71x30 5,11 
I session 
CAP NUM

請點選【Authentication】。 
Method : 有三種選擇,這邊請先選擇Public Key,稍後要產生key 
再來點Browse 
如果手邊已經有產生的key的話,可以選Import 
沒有的話就選Generate,來產生一個新的。 
user Keys 
Type 
Length 
Export. 
Delete 
Rename 
Proper tes 
Generate...

Key Type : 選擇產生key的種類。 
Key Length : 選擇key的加密 
正在產生key 完成後點Next 
Key Name : 設定此key的檔案名稱 
Passphrase : 設定KEY的密碼 
Confirmation : 再輸入一次密碼確認 
然後點選NEXT 
                                                   
接下來【Save as a file…】先儲存key 再選Finish 
User Key Generation Wizard 
Public Key Registration 
Register the public key on the SSH server. 
To use this user key, the public part of the key should be registered on the server. 
Send the following public key to the administrator of your SSH server or register iton 
the authorization file of your remote SSH account. 
Public Key Format: ssH2 - openssH 
ssh-rsa 
AAAAB3NzaC lupqrrgkgnsvosMCnE 
NgbohKUpTPyjFbvnJk9K1nkhoaRbpWbavvNpak1rdbxHMU/omkY018XntpDLU0i 
iv8nXhzX/PxxsA5ElVZFPegnQmP3eGososn50j48PxERgzTOLn0iNn5v6MfKqZS3J 
EhxQgh V J 71QIL xOe30snXpyv dr ggqXiazXZvvh tum Ju tn 4 ItzCbOTmqNgAkcdFVBP 
Xps7hxaL 
+BDqRff0NEvUd /Xb6MvgKndflJw1XXL 4hC2eeXKVsNIAYLcomYYA/8y4MRYaHvEzc 
< Sack 
Save asa file... 
Next >


沒有留言:

張貼留言