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 08-01-2014, 11:22 AM   #1
sdhalepaska
LQ Newbie
 
Registered: Aug 2014
Posts: 4

Rep: Reputation: Disabled
file transfers through proxy


My company has decided that direct connections to vendor sites will now have to go through a proxy for file transfers. Everything I have seen for SFTP and SCP through a proxy involve Connect, Netcat or Corkscrew, none of which we have installed at the moment. Curl looked promising but the following:

Code:
curl -v -p -x proxy_ip:proxy_port -u user:pass sftp://vendor_box
gives me:

Code:
* About to connect() to proxy proxy_ip port 8080 (#0)
*   Trying proxy_ip... connected
* Connected to proxy_ip(proxy_ip) port 8080 (#0)
* Failed to read known hosts from /users/mis/user/.ssh/known_hosts
* Failure establishing ssh session
* Closing connection #0
curl: (2) Failure establishing ssh session
Please note that line about failing to read known hosts will print even when I do a successful connection without the proxy.

Can anyone please offer any other possible solutions?

Red Hat Enterprise Linux Server release 6.4
 
Old 08-01-2014, 05:49 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
"Failed to read known hosts from known_hosts"

I think this is the place to start.

So, it could be key or you need to edit a file on the remote to allow this connection.

Search for web pages on Failed to read known hosts from known_hosts
Testing may include ssh connections. Some pages talk about versions issue. Pretty sure it's ssh issue.

Last edited by jefro; 08-01-2014 at 06:07 PM.
 
Old 08-04-2014, 10:39 AM   #3
sdhalepaska
LQ Newbie
 
Registered: Aug 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
"Failed to read known hosts from known_hosts"

I think this is the place to start.

So, it could be key or you need to edit a file on the remote to allow this connection.

Search for web pages on Failed to read known hosts from known_hosts
Testing may include ssh connections. Some pages talk about versions issue. Pretty sure it's ssh issue.
Thanks for your help. This was actually where I also focussed originally until I tested the verbose output without the proxy. It also prints the line "Failed to read known hosts from known_hosts". It actually prints this line regardless of the user. The next line in the verbose output is the host key retrieved from the destination server and I think this is where it fails through the proxy, returning anything from the destination. So you are probably correct that is is an ssh issue. We are attempting some other routes as well including the installation of netcat. Please let me know if you have any other ideas. Thanks again.
 
Old 08-04-2014, 03:43 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
Did you test it with ssh?
 
Old 08-04-2014, 04:11 PM   #5
sdhalepaska
LQ Newbie
 
Registered: Aug 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
Did you test it with ssh?
Are you referring to something like this:

http://daniel.haxx.se/docs/sshproxy.html

I have not tried this but I notice that it uses that corkscrew function we do not have installed.
 
Old 08-04-2014, 10:50 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
Can you access the system locally to test ssh?
 
Old 08-05-2014, 10:05 AM   #7
sdhalepaska
LQ Newbie
 
Registered: Aug 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
Can you access the system locally to test ssh?
Unfortunately not. I am relying on the security team telling me the proxy is setup as it should be. :|
 
  


Reply


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
file transfers WLReed SUSE / openSUSE 2 05-27-2006 10:26 AM
Gaim file transfers... astronerd Linux - Software 1 04-05-2005 03:51 AM
File Transfers STALL! TomalakBORG Linux - Hardware 2 12-13-2004 08:15 PM
File Transfers in Kopete WarlockofVirgo Linux - Software 0 07-24-2004 03:50 AM
file transfers in Gaim anyone? shassouneh Linux - Networking 2 03-29-2002 09:14 PM


All times are GMT -5. The time now is 02:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration