LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SCP Issue (https://www.linuxquestions.org/questions/linux-newbie-8/scp-issue-721020/)

deibertine 04-22-2009 07:00 PM

SCP Issue
 
Hi all,
Hoping someone out there can provide a simple solution to this.
I'm trying to do an scp from a linux server into another box but ran into this oddly issue:
$ scp testlog234509-xterm12.txt dbertine@ubuntusrv2008.csaa.dev.com:/home/dbertine/logs
command-line: line 0: Bad configuration option: PermitLocalCommand
lost connection

Any idea on why this is happening? Something on my terminal emulation program perhaps? I'm just using Putty - also used gnome-term and hummingbird same issue.

Thank you in advance!

billymayday 04-22-2009 07:07 PM

PermitLocalCommand is an option for ssh_config. Are you sure it hasn't been used in sshd_config by mistake? I'm assuming this in on the server (ubuntusrv2008.csaa.dev.com) rather than the putty end.

deibertine 04-22-2009 07:13 PM

Hmm, that's bizaare.
However this used to work though (like last friday) so I'm not sure what's going on.
I am logged into ubuntusrv2008.csaa.qa.com and trying to scp testlog234509-xterm12.txt file into ubuntusrv2008.csaa.dev.com server.

So are you saying that ssh_config in ubuntusrv2008.csaa.dev.com needs to be checked?
Any other ideas?
Thank you!

billymayday 04-22-2009 07:38 PM

That's where I'd look first

Can you ssh to that server OK?

deibertine 04-23-2009 11:32 AM

Yes I can ssh to it fine, no problems there.
If ssh is the issue, what do I need to check in the ssh_config file?
Any editing I need to do there?
Honestly no idea on what's going on with that.
Thanks.

deibertine 04-24-2009 02:46 PM

Anybody in here have an idea?
Please advise...
Thanks!

TB0ne 04-24-2009 03:36 PM

Quote:

Originally Posted by deibertine (Post 3519895)
Anybody in here have an idea?
Please advise...
Thanks!

Please don't post follow-ups, when you don't get a reply quickly enough to suit you. A follow-up less than 24 hours apart, isn't very polite, especially when we volunteer our time here.

And billymayday told you what to check, have you??? Open the sshd_config file, look in it for the option specified in your error message. Remove it if you find it, and restart your SSH daemon.

The option specified should go into ssh_config, not sshd_config. Has anyone edited that file? What's the date/time on sshd_config?


All times are GMT -5. The time now is 05:41 AM.