ssh localhost는 작동하지만 ssh [localhost의 외부 URL]은 작동하지 않습니다.

ssh localhost는 작동하지만 ssh [localhost의 외부 URL]은 작동하지 않습니다.

저는 직장에서 컴퓨터에 SSH를 통해 연결하는 방법을 연구 중입니다(OpenSSH 5.3을 사용하여 RHEL 기반 배포판을 실행함). 나는 과거에 분명히 작동했던 키, 권한 등을 설정하는 방법에 대한 지침을 받았으며 편지를 따랐지만 ssh를 작동시킬 수 없습니다(명확하지 않은 경우, 저는 ssh를 처음 접했습니다.)

나를 혼란스럽게 하는 것은 기계 자체에서는 완벽하게 ssh localhost작동 ssh 127.0.0.1하지만 ssh [url of machine]그렇지 않다는 것입니다. -v출력을 제공합니다.

OpenSSH_5.3p1, OpenSSL 1.0.0-fips 29 Mar 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to <url> [::1] port 22.
debug1: Connection established.
debug1: identity file /home/<username>/.ssh/identity type -1
debug1: identity file /home/<username>/.ssh/id_rsa type -1
debug1: identity file /home/<username>/.ssh/id_dsa type 2
ssh_exchange_identification: Connection closed by remote host

이는 원격으로 로그인을 시도할 때와 동일한 출력입니다. 관리자 액세스 권한이 없으므로 어떤 로그에도 접근할 수 없을 것 같습니다.

이것이 문제가 무엇인지에 대한 단서를 누구에게나 제공합니까, 아니면 루트 액세스 없이 실패에 대한 자세한 정보를 얻을 수 있는 방법이 있습니까?

편집: 에 들어갈 수 없지만 /etc/ssh/sshd_config다음 /etc/ssh/ssh_config내용이 포함되어 있습니다.

#   $OpenBSD: ssh_config,v 1.25 2009/02/17 01:28:32 djm Exp $

# This is the ssh client system-wide configuration file.  See
# ssh_config(5) for more information.  This file provides defaults for
# users, and the values can be changed in per-user configuration files
# or on the command line.

# Configuration data is parsed as follows:
#  1. command line options
#  2. user-specific file
#  3. system-wide file
# Any configuration value is only changed the first time it is set.
# Thus, host-specific definitions should be at the beginning of the
# configuration file, and defaults at the end.

# Site-wide defaults for some commonly used options.  For a comprehensive
# list of available options, their meanings and defaults, please see the
# ssh_config(5) man page.

# Host *
#   ForwardAgent no
#   ForwardX11 no
#   RhostsRSAAuthentication no
#   RSAAuthentication yes
#   PasswordAuthentication yes
#   HostbasedAuthentication no
#   GSSAPIAuthentication no
#   GSSAPIDelegateCredentials no
#   GSSAPIKeyExchange no
#   GSSAPITrustDNS no
#   BatchMode no
#   CheckHostIP yes
#   AddressFamily any
#   ConnectTimeout 0
#   StrictHostKeyChecking ask
#   IdentityFile ~/.ssh/identity
#   IdentityFile ~/.ssh/id_rsa
#   IdentityFile ~/.ssh/id_dsa
#   Port 22
#   Protocol 2,1
#   Cipher 3des
#   Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
#   MACs hmac-md5,hmac-sha1,[email protected],hmac-ripemd160
#   EscapeChar ~
#   Tunnel no
#   TunnelDevice any:any
#   PermitLocalCommand no
#   VisualHostKey no
Host *
    GSSAPIAuthentication yes
# If this option is set to yes then remote X11 clients will have full access
# to the original X11 display. As virtually no X11 client supports the untrusted
# mode correctly we set this to yes.
    ForwardX11Trusted yes
# Send locale-related environment variables
    SendEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES 
    SendEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT 
    SendEnv LC_IDENTIFICATION LC_ALL LANGUAGE
    SendEnv XMODIFIERS

답변1

보세요 /etc/ssh/sshd_config. (할 수 있다면...)

연결 수락 및 인증 수행 방법과 같은 SSH 서버 동작을 정의하는 구성 요소가 있습니다.

관련 정보