특정 ip에서만 ssh 접속이 가능한 경우
글쓴이: thdnice / 작성시간: 금, 2011/11/25 - 5:35오후
안녕하세요
ssh 서버 접속에 관해서 여쭤볼게 있는데,
외부 컴퓨터에서 ssh를 통해서 접속이 원래 가능했는데, 요 몇일 부터 갑자기 접속이 안되더라구요
connection fail : time out 이 나는데
이상하게도
고정 ip를 쓰는 몇몇 컴퓨터에서는 그대로 접속이 됩니다.
또 그쪽 컴퓨터로 ssh를 접속한 다음에 다시 ssh로 접속하면 접속이 되구요.
그런데 그 이유를 전혀 모르겠네요.
따로 sshd 설정이나 allow, deny 설정을 한 기억도 없는데, 이런게 가능한건가요?
아니면 인터넷 업체쪽에서 (그럴리는 없을 거라고 생각하는데) 특정 ip접근을 차단하는게 가능한가요?
원래 평소에 접속하던 몇몇 컴퓨터를 제외하고는
외부에서 접속이 전혀 안되는데,
왜 이런지 전혀 감이 안오네요..
(firewall도 아닌것 같고, 갑자기 이러니까 갈피를 못잡겠네요)
Forums:
로그를 올려주세요
ssh -v id@host 로그를 올려주세요
없음
로그는 다음과 같습니다.
집에서 접속하려면 다음과 같이 에러가 나며 접속이 불가합니다.
OpenSSH_5.2p1, OpenSSL 0.9.8r 8 Feb 2011
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to 203.255.253.212 [203.255.253.212] port 22.
debug1: connect to address 203.255.253.212 port 22: Operation timed out
ssh: connect to host 203.255.253.212 port 22: Operation timed out
그런데 ssh 로 다른곳에 접속한다음에 접속하면 아래와 같이 되더군요. 뭐가 문제인걸까요?
OpenSSH_5.3p1 Debian-3ubuntu7, OpenSSL 0.9.8k 25 Mar 2009
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 203.255.253.212 [203.255.253.212] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.9p1
debug1: match: OpenSSH_3.9p1 pat OpenSSH_3.*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.3p1 Debian-3ubuntu7
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '203.255.253.212' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:2
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: An invalid name was supplied
Cannot determine realm for numeric host address
debug1: An invalid name was supplied
Cannot determine realm for numeric host address
debug1: An invalid name was supplied
debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/identity
debug1: Trying private key: /root/.ssh/id_rsa
debug1: Trying private key: /root/.ssh/id_dsa
debug1: Next authentication method: password
mgsong@203.255.253.212's password:
댓글 달기