티스토리 뷰

시스템 서버

Bad configuration option: PermitLocalCommand

달리는개발자 2013. 1. 4. 11:12

문제

 

sftp 사용 중 다음과 같은 오류가 발생했습니다.

 

[root@scwas wordpress]# sftp suser@해당 IP
Connecting to 해당 IP...
command-line: line 0: Bad configuration option: PermitLocalCommand
Couldn't read packet: Connection reset by peer

 

 

 

원인

openssh-clients 등 관련 모듈이 설치가 되어있지 않았음

 

해결

[root@scwas wordpress]# yum install openssh-clients
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.yongbok.net
 * epel: ftp.riken.jp
 * extras: mirror.yongbok.net
 * rpmforge: ftp.riken.jp
 * updates: mirror.yongbok.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package openssh-clients.x86_64 0:5.3p1-70.el6_2.2 will be updated
---> Package openssh-clients.x86_64 0:5.3p1-81.el6_3 will be an update
--> Processing Dependency: openssh = 5.3p1-81.el6_3 for package: openssh-clients-5.3p1-81.el6_3.x86_64
--> Running transaction check
---> Package openssh.x86_64 0:5.3p1-70.el6_2.2 will be updated
--> Processing Dependency: openssh = 5.3p1-70.el6_2.2 for package: openssh-server-5.3p1-70.el6_2.2.x86_64
---> Package openssh.x86_64 0:5.3p1-81.el6_3 will be an update
--> Running transaction check
---> Package openssh-server.x86_64 0:5.3p1-70.el6_2.2 will be updated
---> Package openssh-server.x86_64 0:5.3p1-81.el6_3 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================
 Package                        Arch                  Version                       Repository              Size
=================================================================================================================
Updating:
 openssh-clients                x86_64                5.3p1-81.el6_3                updates                358 k
Updating for dependencies:
 openssh                        x86_64                5.3p1-81.el6_3                updates                236 k
 openssh-server                 x86_64                5.3p1-81.el6_3                updates                300 k

Transaction Summary
=================================================================================================================
Upgrade       3 Package(s)

Total download size: 894 k
Is this ok [y/N]: y
Downloading Packages:
(1/3): openssh-5.3p1-81.el6_3.x86_64.rpm                                                  | 236 kB     00:00
(2/3): openssh-clients-5.3p1-81.el6_3.x86_64.rpm                                          | 358 kB     00:00
(3/3): openssh-server-5.3p1-81.el6_3.x86_64.rpm                                           | 300 kB     00:00
-----------------------------------------------------------------------------------------------------------------
Total                                                                            154 kB/s | 894 kB     00:05
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : openssh-5.3p1-81.el6_3.x86_64                                                                 1/6
  Updating   : openssh-clients-5.3p1-81.el6_3.x86_64                                                         2/6
  Updating   : openssh-server-5.3p1-81.el6_3.x86_64                                                          3/6
  Cleanup    : openssh-server-5.3p1-70.el6_2.2.x86_64                                                        4/6
  Cleanup    : openssh-clients-5.3p1-70.el6_2.2.x86_64                                                       5/6
  Cleanup    : openssh-5.3p1-70.el6_2.2.x86_64                                                               6/6

Updated:
  openssh-clients.x86_64 0:5.3p1-81.el6_3

Dependency Updated:
  openssh.x86_64 0:5.3p1-81.el6_3                     openssh-server.x86_64 0:5.3p1-81.el6_3

Complete!

 

설치 확인

[root@scwas ssh]# rpm -qa | grep openssh
openssh-server-5.3p1-81.el6_3.x86_64
openssh-5.3p1-81.el6_3.x86_64
openssh-clients-5.3p1-81.el6_3.x86_64

 

그래도 안되면 yum remove openssh-clients 하고 재설치 ^^

 

반응형
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함