At first, customize /etc/ssh/sshd_config, /etc/ssh/ssh_config

[root@wowsecurity ~/work]# su - sist

:: 키 생성
[sist@wowsecurity ~]$ ssh-keygen -t rsa1 -N "sist1234"
Generating public/private rsa1 key pair.
Enter file in which to save the key (/home/sist/.ssh/identity):
Your identification has been saved in /home/sist/.ssh/identity.
Your public key has been saved in /home/sist/.ssh/identity.pub.
The key fingerprint is:
30:b3:fe:c2:3f:b1:47:58:4e:9d:46:c0:84:06:c9:45 sist@wowsecurity.net

[sist@wowsecurity ~]$ chmod 755 .ssh
[sist@wowsecurity ~]$ cd .ssh
[sist@wowsecurity ~/.ssh]$ ls
identity identity.pub known_hosts

:: 공개키를 접속할 서버로 전송한다.
[sist@wowsecurity ~/.ssh]$ scp identity.pub sist@211.63.89.93:.ssh/authorized_key;
sist@211.63.89.93's password:
identity.pub 100% 339 0.3KB/s 00:00

:: 접속
[sist@wowsecurity ~/.ssh]$ ssh -1 sist@211.63.89.93

'Server' 카테고리의 다른 글

LSOF 설치 및 사용가이드  (0) 2017.01.06
syslog.conf 로그파일 종류  (0) 2017.01.06
ab 커맨드  (0) 2017.01.06
한 유저에게 여러개의 도메인 제공하기  (0) 2017.01.06
SMTP 동적릴레이 - saslauthd  (0) 2017.01.06

+ Recent posts