티스토리 뷰

①xshell → 서버 user2 전자서명로그인

② client user2 → 서버 user2 전자서명로그인

 

◇ Svr_setting[192.168.111.10]

root# vim /etc/ssh/sshd_config [enter]

PasswordAuthentication yes [save]

root# systemctl restart sshd

 

 Client_setting[192.168.111.11]

root# useradd user2

root# passwd user2

{생략가능 keygen실행하면 자동으로됨.

root# mkdir ~user2/.ssh

root# touch ~user2/.ssh/authorized_keys

root# chown -R user2:user2 ~user2/.ssh

root# chmod 700 ~user2/.ssh

root# chmod 600 ~user2/.ssh/authorized_keys

}

root# su - user2

user2$ ssh-keygen -t rsa

user2$ ssh-copy-id -i ~user2/.ssh/id_rsa user2@192.168.111.10

user2$ ssh -i ~user2/.ssh/id_rsa user2@192.168.111.10

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/09   »
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
글 보관함