LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 11-13-2014, 09:46 AM   #1
JockVSJock
Senior Member
 
Registered: Jan 2004
Location: SATX
Distribution: RHEL/CentOS
Posts: 1,166
Blog Entries: 4

Rep: Reputation: 131Reputation: 131
SCP error bad config options and unsupported option from kerberos authentication


Hi, I'm trying to copy files from a Linux Server (Red Hat) to Windows 7 Desktop using SCP from the CLI.

Code:
[imosa@ameda4aisrx0232 tmp]$ scp file.tar.bz2 user@192.168.221.108:/Users/userA
/etc/ssh/ssh_config: line 44: Bad configuration option: PermitTunnel
/etc/ssh/ssh_config: line 56: Bad configuration option: AllowTcpForwarding
/etc/ssh/ssh_config: line 58: Bad configuration option: X11Forwarding
/etc/ssh/ssh_config line 59: Unsupported option "KerberosAuthentication"
/etc/ssh/ssh_config: terminating, 3 bad configuration options
lost connection
I'm checking out the /etc/ssh/sshd_config and making the following changes.

PermitTunnel set from No to Yes
AllowTCPForwarding set from No to Yes
XllForwarding set from No to Yes

After restarting the sshd I'm still getting the same error message.
 
Old 11-13-2014, 10:50 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,949

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
/etc/ssh/sshd_config is the server configuration file
/etc/ssh/ssh_config is the system wide client configuration file.

It appears that you are using server directives in the client configuration file. The server does not use the client configuration file.

Just to make sure, you do have some sort of ssh server running on the windows PC?
 
Old 11-13-2014, 02:32 PM   #3
JockVSJock
Senior Member
 
Registered: Jan 2004
Location: SATX
Distribution: RHEL/CentOS
Posts: 1,166
Blog Entries: 4

Original Poster
Rep: Reputation: 131Reputation: 131
I was in the wrong file, I need to be in ssh_config under /etc/ssh

I don't have an ssh server running on the Windows 7 machine. I don't think it is necessary, since I'm copying from Linux to Windows.
 
Old 11-13-2014, 03:41 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,949

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
I'm probably confused. Just semantics but if you are sitting at the linux PC using the scp command to copy files to the windows PC then the server must be the windows PC.
 
Old 11-13-2014, 06:20 PM   #5
JockVSJock
Senior Member
 
Registered: Jan 2004
Location: SATX
Distribution: RHEL/CentOS
Posts: 1,166
Blog Entries: 4

Original Poster
Rep: Reputation: 131Reputation: 131
Yes, I'm trying to copy down from Linux to Windows. I don't think I have SSH Server running from the Windows 7 machine and just checked the services and don't see it running.

I also modified /etc/ssh/ssh_config and still got the same error as above.

thanks
 
Old 11-13-2014, 11:32 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,949

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
What you posted are not valid ssh client options and do not affect file transfers. Delete them from your ssh_config file.

fillezilla and winscp are windows sftp clients and can transfer files to/from the linux server.
 
Old 11-14-2014, 11:23 AM   #7
JockVSJock
Senior Member
 
Registered: Jan 2004
Location: SATX
Distribution: RHEL/CentOS
Posts: 1,166
Blog Entries: 4

Original Poster
Rep: Reputation: 131Reputation: 131
I tried to scp again and got this:

Code:
ssh: connect to host 143.83.221.108 port 22: Connection refused
lost connection
I was able to copy down from the Linux box to the Windows box use pscp from the Windows box. This is the syntax that I used:

Code:
pscp username@remote-host:/directory-name/file-name C:/local/directory-name
Found on this website: http://www.top5freeware.com/pscp-examples

Just so I understand, even though there isn't a SSH service running on my Windows Box, using pscp from the CLI, I can copy files from the Linux box to the Windows box. I guess I'm not understanding why I can't do it all from the Linux box, especially if SSH Daemon is running and I can SSH into it and SSH into other boxes from there.
 
Old 11-14-2014, 08:45 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,949

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
What other boxes can you ssh to?

In a nutshell a server listens and responds to requests from client. The client can not listen. pscp is a client and sshd is the server running on the linux box. If a server is not running on the windows box the client tries to make a connection but does not get a reply which results in the posted messages.
 
Old 11-15-2014, 05:22 PM   #9
JockVSJock
Senior Member
 
Registered: Jan 2004
Location: SATX
Distribution: RHEL/CentOS
Posts: 1,166
Blog Entries: 4

Original Poster
Rep: Reputation: 131Reputation: 131
I'm going to mark this thread as solved.
 
  


Reply

Tags
kerberos, scp, scp error


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Kerberos active directory authentication on a centos 6 system broken bad rocker65 Linux - General 1 03-25-2013 12:37 PM
Mount: wrong fs type, bad option, bad superblock missing codepage or other error twaddlac Linux - Virtualization and Cloud 3 09-29-2010 10:24 AM
Mount: wrong fs type, bad option, bad superblock missing codepage or other error twaddlac Red Hat 4 09-28-2010 05:45 AM
ERROR AT MOUNTING USB :mount: wrong fs type, bad option, bad superblock on /dev/sda1, saiket Linux - Hardware 3 04-12-2008 01:07 AM
usb drive won't mount - error: wrong fs type, bad option, bad superblock on /dev/sda1 bluecog6 Linux - Hardware 4 01-27-2007 10:07 AM


All times are GMT -5. The time now is 12:29 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration