[테스트 환경] 

* 가상화 플랫폼 :  VMware® Player 3.1.2 build-301548
* 호스트 OS : Windows 7 Enterprise, 64-bit
* 리눅스 OS : Fedora-14-i686-Live-Desktop

 


[시나리오]

Fedora14,  Desktop 버전으로 인스톨 후에 네트워크 설정하고 바로 ssh 툴로 접속을 시도하였는데, 연결 실패 상황




[해결방법]

1. sshd 서비스 자동실행 여부 확인
 

[root@localhost /]# chkconfig
         ~ 생략 ~
sendmail         0:off 1:off 2:on 3:on 4:on 5:on 6:off
smolt              0:off 1:off 2:off 3:off 4:off 5:off 6:off
sshd               0:off 1:off 2:off 3:off 4:off 5:off 6:off
sssd                0:off 1:off 2:off 3:off 4:off 5:off 6:off
udev-post       0:off 1:on 2:on 3:on 4:on 5:on 6:off
wpa_supplicant  0:off 1:off 2:off 3:off 4:off 5:off 6:off




2. SELINUX 설정 확인
 

[root@localhost /]# sestatus
SELinux status:                  enabled
SELinuxfs mount:                /selinux
Current mode:                    enforcing
Mode from config file:          enforcing
Policy version:                     24
Policy from config file:         targeted




3. SELINUX의 enforcing 모드를 permissive 모드로 변경

[root@localhost /]# setenforce permissive
[root@localhost /]# sestatus
SELinux status:                  enabled
SELinuxfs mount:                /selinux
Current mode:                    permissive
Mode from config file:          permissive
Policy version:                    24
Policy from config file:         targeted




4. sshd 서비스 자동실행 등록 (부팅시 해당 데몬의 자동실행) 

[root@localhost /]# chkconfig sshd on    (또는 chkconfig --level 2345 sshd on)
[root@localhost /]# chkconfig
         ~ 생략 ~
sendmail         0:off 1:off 2:on 3:on 4:on 5:on 6:off
smolt              0:off 1:off 2:off 3:off 4:off 5:off 6:off
sshd               0:off 1:off 2:on 3:on 4:on 5:on 6:off
sssd                0:off 1:off 2:on 3:on 4:on 5:on 6:off
udev-post       0:off 1:on 2:on 3:on 4:on 5:on 6:off
wpa_supplicant  0:off 1:off 2:off 3:off 4:off 5:off 6:off




5. 수동으로 sshd 데몬 시작

[root@localhost ~]# /etc/init.d/sshd start
Generating SSH2 RSA host key:                     [  OK  ]
Generating SSH1 RSA host key:                     [  OK  ]
Generating SSH2 DSA host key:                     [  OK  ]
Starting sshd:                                               [  OK  ]




6. ssh 툴로 접속 여부 테스트

 

 


 

'::: OS ::: > Linux' 카테고리의 다른 글

SuSE 10.2 - X Windows 대신 콘솔로 부팅하기  (0) 2011.07.26
SELinux 비활성화  (0) 2010.11.22
Fedora 에 vsftpd 서비스 설치  (0) 2010.10.29
리눅스 다운로드  (0) 2010.10.06
원격지에서 FTP 백업  (0) 2010.09.07

+ Recent posts