ssh가 노트북에 깔려 있지 않다. ssh2를 설치하여 보자. telnet을 이용하지 않고 노트북을 바로 이용하여 설치 했다. telnet을 이용한 설치는 조금 틀리다.
1. 다운로드
2. 설치
# tar -xvzf ssh-3.2.0.tar.gz
# cd ssh-3.2.0
# ./configure
# make && make install
3. 자동스크립트 복사
# cd startup/linux/redhat
# cp sshd2 /etc/rc.d/init.d/
4. 부트에 올리자
chkconfig --level 3 sshd2 on
chkconfig --list|more
5. 설정
# cd /etc/ssh2
# vi sshd2_config
## User restrictions
# AllowUsers sj.*,s[[:digit:]]*,s(jl|amza)
# DenyUsers skuuppa,warezdude,31373
# DenyUsers
# AllowGroups staff,users
# DenyGroups guest,anonymous
PermitRootLogin no
# PermitRootLogin nopwd3.
6. 실행
# /etc/rc.d/init.d/sshd2 start
만약 이렇게 실행했는데 작동하지 않는다면? openssh 를 삭제 해야 된다.
# rpm -qa|grep openssh
# rpm -e openssh-server
# rpm -e openssh-clients
# rpm -e openssh
# ps -ax|grep ssh
# ls /etc/rc.d/init.d/ssh
# killall sshd
# /etc/rc.d/init.d/sshd2 start
7. 기타
텔넷을 제거 하고 23번 포트를 닫자.
# vi /etc/xinetd.d/telnet no -> yes로 변경
# vi /etc/sysconfig/iptable 23포트제거 (or ipchains)
# /etc/rc.d/init.d/iptable restart
# /etc/rc.d/init.d/xinetd restart