'2010/06/30'에 해당되는 글 1건

  1. 2010/06/30 [RPM] SSH 재설치하기
시스템/LinuxSystem2010/06/30 14:45

// 설치확인

[root@localhost ~]# rpm -qa | grep ssh
openssh-clients-4.0p1-3
openssh-server-4.0p1-3
openssh-askpass-gnome-4.0p1-3
openssh-4.0p1-3
openssh-askpass-4.0p1-3

 

==========================================================================================================

//실행

 [root@localhost ~]# /etc/rc.d/init.d/sshd start
sshd (을)를 시작합니다:

  =>실행시키는 순간분터 SSHD는 데몬이 됨 , 실행은 하고 있으나 리눅스상엔 영향을 끼치지 않는다

==========================================================================================================

 //실행확인

 

[root@localhost ~]# /etc/rc.d/init.d/sshd status
sshd (pid 2220) 가 실행하고 있습니다..
You have mail in /var/spool/mail/root
==========================================================================================================

 

//리눅스 상에서 SSH 실행하고 나가기

 

[root@localhost ~]# ssh 127.0.0.1
The authenticity of host '127.0.0.1 (127.0.0.1)' can't be established.
RSA key fingerprint is cc:66:53:c1:ef:1b:ce:f8:1e:f5:fd:2f:b6:b7:63:1d.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': y
Please type 'yes' or 'no': yes
Warning: Permanently added '127.0.0.1' (RSA) to the list of known hosts.
root@127.0.0.1's password:
Last login: Fri Jun 13 10:35:51 2008
[root@localhost ~]# exit
logout

 

Connection to 127.0.0.1 closed.
[root@localhost ~]#
=================================================================================================================

SSH 실행 중지

 

[root@localhost ~]# /etc/rc.d/init.d/sshd stop
sshd 를 정지함:                                            [  확인  ]
=================================================================================================================

 

rpm 이용 SSH 파일 제거

 

[root@localhost ~]# rpm -qa | grep ssh
openssh-clients-4.0p1-3
openssh-server-4.0p1-3
openssh-askpass-gnome-4.0p1-3
openssh-4.0p1-3
openssh-askpass-4.0p1-3
[root@localhost ~]# rpm -e --nodeps openssh-clients
[root@localhost ~]# rpm -qa | grep ssh
openssh-server-4.0p1-3
openssh-askpass-gnome-4.0p1-3
openssh-4.0p1-3
openssh-askpass-4.0p1-3
[root@localhost ~]#
==============================================================================================================

ssh 파일들을 재설치 하기 위해선 우선 인터넷이 되어야 한다

터미널 상에서 ftp.superuser.co.kr 로 접속

 

익명연결 Name : ftp 로 입력

 

/fedora/core4/i386/RPMS 로 들어가

lcd temp 로 디렉토리 변경?

 

mget openssh* 로 ssh파일 복사

 

ssh 확인후 시작

 

[root@localhost tmp]# rpm -ivh openssh*
경고: openssh-4.0p1-3.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
준비 중...               ########################################### [100%]
   1:openssh                ########################################### [ 20%]
   2:openssh-askpass        ########################################### [ 40%]
   3:openssh-askpass-gnome  ########################################### [ 60%]
   4:openssh-clients        ########################################### [ 80%]
   5:openssh-server         ########################################### [100%]
[root@localhost tmp]# ls
VMwareDnD                               orbit-root
fr-eSNTOc                               ssh-AXvDpt2644
gconfd-root                             texconfig.gt5049
keyring-MbAgOL                          tmp.jakBqM2575
mapping-root                            tmp.xpi
openssh-4.0p1-3.i386.rpm                vmware-config0
openssh-askpass-4.0p1-3.i386.rpm        vmware-config1
openssh-askpass-gnome-4.0p1-3.i386.rpm  vmware-root
openssh-clients-4.0p1-3.i386.rpm        xses-root.Ame6mz
openssh-server-4.0p1-3.i386.rpm
[root@localhost tmp]# rpm -qa | grep ssh
openssh-4.0p1-3
openssh-server-4.0p1-3
openssh-askpass-4.0p1-3
openssh-clients-4.0p1-3
openssh-askpass-gnome-4.0p1-3

[root@localhost tmp]# /etc/rc.d/init.d/sshd start
sshd (을)를 시작합니다:                                    [  확인  ]
[root@localhost tmp]#

[출처] http://www.cyworld.com/garnetiger/369517

Posted by H@CK