LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-22-2009, 07:00 PM   #1
deibertine
Member
 
Registered: Mar 2009
Posts: 222

Rep: Reputation: 30
Unhappy 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!
 
Old 04-22-2009, 07:07 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
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.
 
Old 04-22-2009, 07:13 PM   #3
deibertine
Member
 
Registered: Mar 2009
Posts: 222

Original Poster
Rep: Reputation: 30
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!
 
Old 04-22-2009, 07:38 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
That's where I'd look first

Can you ssh to that server OK?
 
Old 04-23-2009, 11:32 AM   #5
deibertine
Member
 
Registered: Mar 2009
Posts: 222

Original Poster
Rep: Reputation: 30
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.
 
Old 04-24-2009, 02:46 PM   #6
deibertine
Member
 
Registered: Mar 2009
Posts: 222

Original Poster
Rep: Reputation: 30
Anybody in here have an idea?
Please advise...
Thanks!
 
Old 04-24-2009, 03:36 PM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by deibertine View Post
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?
 
  


Reply

Tags
scp, ssh



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange scp issue while copying files gettons_slack Linux - Software 2 08-26-2006 06:33 AM
Strange scp issue while copying files gettons_slack Slackware 7 08-25-2006 02:53 PM
SCP issue phonecian Linux - Software 1 07-05-2005 08:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration