저는 호스트 2대에 ssh를 깔아 놓았습니다.
remote와 local에 ssh를 깔구..
깔은것..
ssh2-2.0.13
ssh2-server-2.0.13
ssh2-clients-2.0.13
ssh2-extras-2.0.13
localhost의 제 계정에서 ssh-keygen2를 실행시킨후..
identification이란 화일에
IdKey id_dsa_1024_a 이렇게 적어 넣었습니다.
그리고 remote에도 똑같이 만든후. remote의 pub키 값을 가져와서
remote.pub 이라고 만들고
authorization 이란 화일에
Key remote.pub 이렇게 적었습니다.
그리고 ssh remote.host.com 쳤더니..
Passphrase for key "/home/mutant/.ssh2/id_dsa_1024_a" with comment "1024-bit dsa, mutant at remote.host.com, Wed Nov 08 2
000 19:20:39 +0900" 이런 메세지가 나옵니다.. 이게 정상이져??
근데 반대경우가 안됩니다.
remote 호스트에서 local 호스트로 ssh local.host.com 이라고 치면..
mutant at local.host.com's password:
이렇게 나옵니다. 이렇게 해두 암호화는 된다지만..
저는 서버두개가 똑같이 개인키를 입력해서 들어가게 하고 싶습니다.
질문내용이 장황하게 길었는데..
아래는 config입니다..
어떻게 해야지.. 두곳에서 정상적으로 접속할 수 있는지 갈켜주세여..
# sshd2_config
# SSH 2.0 Server Configuration File
*:
Port 22
# 사용할 포트
ListenAddress 0.0.0.0
# 모든곳으로부터 접속할 수 있다.
Ciphers AnyStd
# Ciphers AnyCipher
# Ciphers AnyStdCipher
# Ciphers 3des
IdentityFile identification
AuthorizationFile authorization
HostKeyFile hostkey
PublicHostKeyFile hostkey.pub
RandomSeedFile random_seed
ForwardAgent yes
ForwardX11 yes
# DEPRECATED PasswordAuthentication yes
PasswordGuesses 3
# 3번 실패까지만..
# MaxConnections 50
# 0 == number of connections not limited
MaxConnections 0
"sshd2_config" [readonly] 69 lines, 1485 characters
ListenAddress 0.0.0.0
# 모든곳으로부터 접속할 수 있다.
Ciphers AnyStd
# Ciphers AnyCipher
# Ciphers AnyStdCipher
# Ciphers 3des
IdentityFile identification
AuthorizationFile authorization
HostKeyFile hostkey
PublicHostKeyFile hostkey.pub
RandomSeedFile random_seed
ForwardAgent yes
ForwardX11 yes
# DEPRECATED PasswordAuthentication yes
PasswordGuesses 3
# 3번 실패까지만..
# MaxConnections 50
# 0 == number of connections not limited
MaxConnections 0
# 접속 제한 0은 제한하지 않는다.
# PermitRootLogin nopwd
PermitRootLogin no
# DEPRECATED PubkeyAuthentication yes
# AllowedAuthentications publickey,password,hostbased
AllowedAuthentications publickey,password--
넌 또다른 나