up vote 2 down vote favorite
1
share [g+] share [fb]

I have a debian box that I cannot scp files from.

Installing ssh again does not fix this issue

hosting:/home/gcushing# scp test.text gcushing@serenity.gwi:/home/gcushing
command-line: line 0: Bad configuration option: PermitLocalCommand
lost connection

I have added and removed PermitLocalCommand from /etc/ssh/ssh config

FYI, /usr/bin/ssh is the odd one out:

xach@hosting:/$ grep '\(ssh\|scp\)$' /var/lib/dpkg/info/openssh-client.md5sums 
ef75badecd778d4c91d8679c63a7512c  usr/bin/ssh 
53adbbcc6ae2d03c145e94bef36cbc98  usr/bin/scp 

xach@hosting:/$ md5sum usr/bin/ssh /usr/bin/scp 
c5022a79360ae8d32051ec2cd23ced25  usr/bin/ssh 
53adbbcc6ae2d03c145e94bef36cbc98  /usr/bin/scp
link|improve this question

25% accept rate
feedback

2 Answers

up vote 0 down vote accepted

I had a compromise with this from the sebd rootkit. Thanks for the heads up.

grep '\(ssh\|scp\)$' /var/lib/dpkg/info/openssh-client.md5sums
cd649a9c527c0c7980bc6d700296eaef  usr/bin/ssh

md5sum usr/bin/ssh /usr/bin/scp
3d36ae70e17854b6bc8de710293f63b0  usr/bin/ssh
link|improve this answer
feedback

Thats really shady how the actual binary's checksum is different from what package specifies it should be. Does this host face internet?

Also try using 'apt-get' purge command to reinstall openssh.

link|improve this answer
This box does face the public. I couldn't get purge correctly working. Looking at purge it does nothing different than remove which didnt work. – user19039 Dec 10 '09 at 13:58
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.