LinuxQuestions.org
Visit Jeremy's Blog.
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 03-01-2004, 12:59 PM   #1
harmster
LQ Newbie
 
Registered: Feb 2004
Posts: 25

Rep: Reputation: 15
Unhappy ssh port forward failure


Hello all,

I have configured our iptables to forward a request to port 2223 on our server to my pc port nr 22. And that actually works if I have an empty know_hosts file on the remote machine I want to use to login to my machine. Something like: $ ssh -p2223 foo@bar.com
On connection ssh ask whether or not I would like to add a key to my empty known_hosts file. I agree and merrily go my way. But if I disconnect and try to ssh to our server like: $ ssh foo@bar.com it complains about "WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!" and "Host key verification failed". Real nice, now I have to clean out my known_hosts file again.
There must be an easier way! Can't I configure the remote system so that I will be able to connect to _both_ port 22 and 2223 without deleting the entry out of my known_hosts file?
Any help is appreciated.
 
Old 03-01-2004, 01:41 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Either turn off strict checking in ssh_config
or use an ip number for the non standard ports connections..

Last edited by peter_robb; 03-01-2004 at 01:44 PM.
 
Old 03-08-2004, 07:46 AM   #3
harmster
LQ Newbie
 
Registered: Feb 2004
Posts: 25

Original Poster
Rep: Reputation: 15
I tried both but both with the same result. None.
 
  


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
SSH port forward problem idsdown Linux - Networking 2 11-25-2005 01:47 AM
mp3 stream through ssh port forward??? nixmeister Linux - Networking 3 01-06-2005 12:48 PM
A way to forward an IP/Port to another system's IP/Port astroboy5714 Linux - Networking 6 01-26-2004 06:45 PM
Forward port port 80 to lan web server dulaus Linux - Networking 9 10-04-2002 04:45 AM
port forward over ssh bedwardj Linux - Security 1 06-26-2001 05:07 PM

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

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