[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


Setup up Fedora for SSH from a Windows Machines

Posted on 2006-06-27
Medium Priority
Last Modified: 2008-02-26

I have two computer running, and they are connected to the same router.

Computer A: MS Windowns XP
Computer B: Fedora 5

I have check the ip of both computers, from whatismyipaddress.com, two of them have the same ip address.

But I don't have too much experience to networking, and I need to setup Fedora that I can ssh to my Fedora from other machines remotely.  


Question by:huabin
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 10

Accepted Solution

Luxana earned 672 total points
ID: 16997299

>I have check the ip of both computers, from whatismyipaddress.com, two of them have the same ip address.

well that IP address what your are talking about is external IP address, so I assume that both computers are on the same network. To check your IP address use command line and type:

# ifconfig   --> this is for linux

and for windows:
START->RUN->cmd->ENTER  and type


then use winssh


hope this helps

LVL 16

Assisted Solution

xDamox earned 664 total points
ID: 17001990

Go to your Fedora machine and login then type:


You should look for a line similar to:

inet addr:

The is the IP your may differ but that is the IP you will use to connect to your fedora machine via SSH client. Then become root user by typing:

su -

Once you have become root type:


this will open a text based interface to allow you to configure your firewall, open port 22 then click ok. Once port 22 is open goto your
windows machine and SSH in to your Fedora machine
LVL 22

Expert Comment

ID: 17004710
2 ip addresses that are identical on the same network is not good!

You need to resolve this conflict.

Personally I prefer putty:


(   (()
(`-' _\
 ''  ''


Author Comment

ID: 17035066

Just to make it clear, I want to SSH from an outside computer, so the real problem is that how do I configure my Linux and Wins XP to have diffnerent external IP address.

Thanks  a lot.
LVL 22

Assisted Solution

pjedmond earned 664 total points
ID: 17035275
You can't give them different IP addresses, because your router is only provided with one ip address. What you can do is:

1.    Forward port 22 directly to the Win XP address, and forward port 2222 to the port 22 on the Linux box.
2.    Run sshd on port 2222 using the -p 2222 in the sshd startup. You can then forward port 2222 directly to the linux box.
3.    Using port forwarding within ssh, port 22 is the only port that is forwarded through the firewall. Using ssh -L, you forward the second(or other) PCs connection through the firewall so that you can connect to it loacally:


 The following may also be of use:


And any combination of the above ideas. That way you can have as many systems behind the 1 ip address (within reason), and connect to them relatively easily provided you know the network configuration behind the router/firewall.

(   (()
(`-' _\
 ''  ''


Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question