LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SCP error bad config options and unsupported option from kerberos authentication (https://www.linuxquestions.org/questions/linux-newbie-8/scp-error-bad-config-options-and-unsupported-option-from-kerberos-authentication-4175525295/)

JockVSJock 11-13-2014 08:46 AM

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.

michaelk 11-13-2014 09:50 AM

/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?

JockVSJock 11-13-2014 01:32 PM

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.

michaelk 11-13-2014 02:41 PM

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.

JockVSJock 11-13-2014 05:20 PM

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

michaelk 11-13-2014 10:32 PM

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.

JockVSJock 11-14-2014 10:23 AM

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.

michaelk 11-14-2014 07:45 PM

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.

JockVSJock 11-15-2014 04:22 PM

I'm going to mark this thread as solved.


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