LinuxQuestions.org
Help answer threads with 0 replies.
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 11-13-2014, 08:46 AM   #1
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
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, 09:50 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
/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, 01:32 PM   #3
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
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, 02:41 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
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, 05:20 PM   #5
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
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, 10:32 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
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, 10:23 AM   #7
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
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, 07:45 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
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, 04:22 PM   #9
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
I'm going to mark this thread as solved.
 
  


Reply

Tags
kerberos, scp, scp error



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 11:37 AM
Mount: wrong fs type, bad option, bad superblock missing codepage or other error twaddlac Linux - Virtualization and Cloud 3 09-29-2010 09:24 AM
Mount: wrong fs type, bad option, bad superblock missing codepage or other error twaddlac Red Hat 4 09-28-2010 04:45 AM
ERROR AT MOUNTING USB :mount: wrong fs type, bad option, bad superblock on /dev/sda1, saiket Linux - Hardware 3 04-12-2008 12: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 09:07 AM

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

All times are GMT -5. The time now is 12:16 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
Open Source Consulting | Domain Registration