Tom's Hardware > Forum > Linux/Free BSD > Linux/Free BSD General Discussion > Routing fixed. SSH help needed now

Routing fixed. SSH help needed now

Forum Linux/Free BSD : Linux/Free BSD General Discussion - Routing fixed. SSH help needed now

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Okay, I got my linux routing box working, and my lan set up. I don't have a KVM switch, nor do I have a spare monitor for the linux router, so I want to be able to log in via ssh in order to make any changes that I need.

I've set iptables to open the ssh port, and have ssh installed on my linux box. I have the client installed on this computer (windows XP), but cannot maintain a connection. I've set up an authorized_keys file in /home/silverpig/.ssh/ on my linux box, but every piece of documentation I can find says to copy that file to my home directory in my client computer (usually /home/silverpig/.ssh/) but, I'm running windows, so where do I put that file?

Lyrics. Wasted time between solos.

Sponsored Links
Register or log in to remove.

<i>...every piece of documentation I can find says...</i>

Did you find <A HREF="http://www.ssh.com/products/ssh/winhelp31/index.html" target="_new">this</A> piece of documentation?

Reply to poorboy

you mean you just want to connect LOCALLY? i.e. from the pc next to it? if so, just telnet in!, may have to enable telnet on the router, then just open telnet on the box behind the router/firewall and telnet in there.


If they squeeze olives to get olive oil, how do they get baby oil?

Reply to CALV

Okay, I've found that I can set up telnet and SSH properly, because I used the linux routing box to log in to my other box (running linux in a linux/XP dual boot) via both SSH and telnet with no problems. However, when I try going the other way (ie from the XP/linux box to the linux router box) with either telnet or SSH, I get a "connection closed by foreign/remote host"

So it must be a firewall setting right?

I've added the lines opening port 22 (SSH) and port 23 (telnet) on the router, but something's still wrong.

I believe the lines I added go something like:

iptables -A INPUT -p tcp --syn -s 192.168.0.2 --destination-port 22 -j ACCEPT

and the same with port 23, and the same for OUTPUT...

What have I got wrong?

Lyrics. Wasted time between solos.

Reply to silverpig

Okay, I'm gonna admit something here... I wanted to stick with iptables and config files, but I was too frustrated, so I went with the mandrake configuration programs. I know, I took the easy way, but now I've got everything set up. DHCP, firewalling, SSH with no telnet (telnet = bad), connection sharing...

Thanks for the help anyways.

Lyrics. Wasted time between solos.

Reply to silverpig

Sweet... X over the network rules :smile:

Lyrics. Wasted time between solos.

Reply to silverpig

glad you sorted it, Imnot sure about ipTABLES but ipCHAINS I would have also masqd it, I have very similar probs with port 80 forwarding to a 2k box and it just WOULDNT work even though i idid it exactly the same as I did for ftp and telnet ports, in the end I also "chickened out", I installed <A HREF="http://www.freesco.org" target="_new">freesco</A> !


If they squeeze olives to get olive oil, how do they get baby oil?

Reply to CALV

Yeah, it works now. Everything's cool... 'cept enlightenment messed up on me for some reason. It's never happened before. It's okay though, I'm thinking of going with more of a "real" distro soon anyways. I like rpms so I'll probably go for redhat...

Lyrics. Wasted time between solos.

Reply to silverpig
Tom's Hardware > Forum > Linux/Free BSD > Linux/Free BSD General Discussion > Routing fixed. SSH help needed now
Go to:

There are 621 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them