LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-13-2008, 09:07 PM   #1
super_hill
LQ Newbie
 
Registered: Jan 2008
Location: Shanghai China
Distribution: Ubuntu
Posts: 8

Rep: Reputation: 0
Problem when access ssh server under proxy


I have a ssh server expose on the internet, and I can ssh it when I am in home(which my home network is directly connect to the internet by ADSL).

When I am in the office, the network for access internet is under a proxy(which likes "xxx.xxx.xxx.xxx 8080"), and what i did is:
1. Install the corkscrew,
2. ceate the ~/.ssh/config file like:
Host *
ProxyCommand corkscrew xxx.xxx.xxx.xxx 8080 %h %p
3. ssh -vvv my.ssh-server.com

But unfortunately the connect is failed with this debug info:

test@test-laptop:~/.ssh$ ssh -vvv server@xxx.xxx.xxx.xxx
OpenSSH_4.7p1 Debian-8ubuntu1.2, OpenSSL 0.9.8g 19 Oct 2007
debug1: Reading configuration data /home/test/.ssh/config
debug1: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Executing proxy command: exec corkscrew xxx.xxx.xxx.xxx 8080 xxx.xxx.xxx.xxx 22
debug1: permanently_drop_suid: 1000
debug1: identity file /home/test/.ssh/identity type -1
debug1: identity file /home/test/.ssh/id_rsa type -1
debug1: identity file /home/test/.ssh/id_dsa type -1
ssh_exchange_identification: Connection closed by remote host


Anybody knows what the problem ???

Last edited by super_hill; 07-13-2008 at 09:08 PM.
 
Old 07-15-2008, 05:37 PM   #2
Cocoabean
LQ Newbie
 
Registered: Jan 2007
Distribution: Ubuntu
Posts: 17

Rep: Reputation: 0
That last line of the error makes me think it has something to do with the host key. What authentication mode are you in, you might need to copy your key to the allowed hosts file.
 
  


Reply



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
Using DSL and ssh / ssh-server to access the Windoze desktop GUI On2ndThought Linux - Server 4 11-16-2008 02:17 PM
ssh server proxy teayourself Linux - Newbie 3 05-07-2008 01:46 AM
Accessing SSH from behind a proxy server rbkool Linux - Networking 3 08-25-2007 10:12 AM
Trying to SSH through a proxy server Scotteh Linux - Networking 10 05-31-2006 07:03 AM
Proxy problem: can`t connect SSH through proxy... bugzilla Linux - Networking 3 09-16-2004 10:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:37 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