Next:
shell command in .bashrc
, Previous:
Function
, Up:
Index
ssh-keygen
ssh
-
keygen
-
t
rsa
client(접속 시도 컴퓨터): private key(id_rsa)
server(접속 되는 컴퓨터): public key(authorized_keys)
uname=
<
UNAME
>
ip=
<
IP
>
scp
-
p
$HOME
/
.
ssh
/
id_rsa
.
pub
$uname
@
$ip
:
~/
.
ssh
/
authorized_keys
ssh 보안
chmod
700
~/
.
ssh
chmod
600
~/
.
ssh
/
id_rsa
chmod
644
~/
.
ssh
/
id_rsa
.
pub
chmod
644
~/
.
ssh
/
authorized_keys
chmod
644
~/
.
ssh
/
known_hosts
~/.ssh/config
Host
BonitaKali
HostName
<
IP
>
Port
22
User
<
USER
>
Host
DaisyBBB
HostName
<
IP
>
Port
22
User
<
USER
>
ssh BonitaKali
ssh DaisyBBB