SCP 에러 (command-line: line 0: Bad configuration option: PermitLocalCommand)
SCP 명령어 사용시 다음과 같은 에러 메시지가 나옵니다.
[root@hoony ssh]# scp ssh_config root@192.168.0.15:/home/
command-line: line 0: Bad configuration option: PermitLocalCommand
lost connection
구글링 해봐도 도저히 처리가 되지 않아 이렇게 글을 올립니다.
[root@hoonyssh]# cat ssh_config
.
.
.
# Ciphers aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc
# EscapeChar ~
# Tunnel no
# TunnelDevice any:any
PermitLocalCommand no
.
.
ssh 설정은 이렇게 되어 있습니다.
[root@hoonyssh]# ps -ef | grep ssh
root 2864 2809 0 Mar16 ? 00:00:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /etc/X11/xinit/Xclients
root 31769 1 0 18:38 ? 00:00:00 sshd: root@pts/1
root 32182 1 0 19:04 ? 00:00:00 /usr/sbin/sshd
또한, 22번 포트가 netstat에서 보이지 않네요.
[root@protexip ssh]# netstat -nlpt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:2208 0.0.0.0:* LISTEN 2567/hpiod
tcp 0 0 0.0.0.0:55432 0.0.0.0:* LISTEN 13954/postmaster
tcp 0 0 0.0.0.0:5801 0.0.0.0:* LISTEN 2807/Xvnc
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 3152/smbd
tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 2807/Xvnc
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 2376/portmap
tcp 0 0 0.0.0.0:6001 0.0.0.0:* LISTEN 2807/Xvnc
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 3143/proftpd: (acce
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2584/cupsd
tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN 2610/xinetd
tcp 0 0 0.0.0.0:891 0.0.0.0:* LISTEN 2405/rpc.statd
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 3152/smbd
tcp 0 0 127.0.0.1:2207 0.0.0.0:* LISTEN 2572/python
이와 관련하여 해결책이 있으면 무었이 있을까요?
감사합니다.
댓글 달기