2020. 7. 16.

[Network] ssh를 이용한 putty 접속


putty key generator

generate 클릭

Puny' Key Generator 
Eile Key Conyersions Help 
eublic key for pasting into OpenSSH authohzed_keys file 
ssh«a AAAA83NzaC1yc2EAAAA8JQAAAQEAnmDdN58HEk4XU1fexvxO*dU 
M151JgwsTyD 8nIVdJ KI bb VI Rz/p HgRrP E5LSn*7mzmonQ3ue LICi KDsoy6,fiao 
md4qb0fzkJRYyJyGYxFs%6NSVIRp//IkJUn58xn5svRu04RXCqhnRRg6S8e7xdmdCe v 
Key comment 
Key passphrase 
Confirm passphrase 
&key-20200716 
c:::::::::::::::::::::::::::::::::::::::::::::::::::::::z 
c:::::::::::::::::::::::::::::::::::::::::::::::::::::::z 
Generate a public/private key pair 
Isad an existing private key file 
Save the generated key 
Parameters 
Type of key to generate 
@BSA 
Number of Otts in a generated key 
Sa ve public key 
O ECDSA 
O s s (RSA)

키가 만들어지면 save private key 눌러 저장해서 파일을 보관한다.

접속할 서버에 비밀키를 붙여넣는다.
vi /root/.ssh/authorized_keys

root@localhost:- 
;h-rsa AAAa3NzaC1yc2EA»naJQAAQEAnmDdN58HEk4XUVfexvxø+dU+hm15UgwsTyDan1VdJk 
'IR z/ pHg6trPE 5LSn+7mzmonQ3ueLlCiKDsoy6/ iao+8mgqGEY+ / CheezJ BF EUn1kk+Ffq aH2S7T s a : 
: sqd1cwdGLlTmd4qbofzkJRYyJyGYxFsgd61ugviRp/ / 1kJUn58xn5svRuø4RXCqrinRRg698e7xdr 
rsa-key-2e2øe716

putty - connection - data

접속할 계정 이름인 root 라고 적어준다.

Puny' Configuration 
Category 
Logging 
Terminal 
Keybo ard 
Window 
Appearance 
Behaviour 
Translation 
Selection 
Colouß 
Connection 
Telnet 
Rlogin 
Data to send to the server 
login details 
Aut040gin usemame 
When usemame is not specified 
@ Prompt C) use system u semame N ad) 
Terminal details 
leminakype string 
Terminal »eeds 
Environment variables

connection - ssh - Auth에서 browse 누르고 키를 저장한다.

Puny' Configuration 
Category 
Window 
Appearance 
Behaviour 
Translation 
Selection 
Colouß 
Connection 
Telnet 
Rlogin 
Host keys 
Cipher 
Auth 
Bugs 
More bugs v 
Options controlling SS H authentication 
Z] Qisplay pre-authentication banner (SS H-2 only) 
b'pass authentication entirely (SS H -2 only) 
Authentication methods 
Z] AttemQt authentication using Pageant 
Attempt TIS or CryptoCard auth (SSH-I) 
Z] Attempt 'keyboardqnteractive" auth (SSH-2) 
Authentication parameters 
Alow agent f_omarding 
Alo*' attempted changes of usemamein SSH-2 
Private ey file for authentication

session 가서 저장하고 로그인해본다.

root@localhost:- 
using username "root". 
Authenticating with public key "rsa-key-2ø2%716" 
Last login: Thu Jul 16 213213 from 192.168.1ø.146 
Croot@localhost


댓글 없음:

댓글 쓰기