Thanks, I do understand that there is an internal and an external address. I want to force my workstation to have the internal address 192.168.1.140 so that my router will forward port 22 to the right machine - it's set up to do that so that my windows stuff works. Can I make Fedora assign a specific internal address? Because interally I'm not always at 192.168.1.2; it seems to depend on which machine logs in first.
I'd be happy to do any reading - can you point me at the right doc? I've searched a lot but haven't got the right keywords or fully understood some of what I've read....
----- Original Message ---- From: Steve Searle steve@stevesearle.com To: For users of Fedora fedora-list@redhat.com Sent: Wednesday, June 27, 2007 1:44:28 PM Subject: Re: ssh - cannot log in
Around 03:20pm on Wednesday, June 27, 2007 (UK time), David Katz scrawled:
I think you have identified at least part of my problem:
ifconfig says that my workstation is 192.168.1.2. To match my router's settings, I need it to be 192.168.1.140. Can I just:
ifconfig eth0 192.168.1.140
No - I think you need to do some more reading. 192.168.1.n is an address on your internal network - and cannot be reached from the internet. Your router will have two addresses, an internal one (192.168.1.40 I assume) and an external one that is not itn the 192.168.1.n range.
I assume you are trying to run putty on a machine that is not on your local network, i.e. over the Internet. If so, you should be connecting to the external IP address, and you need to log onto your router and set ok for a way of setting up prot forwarding, and then forward port 22 packets that come into your router to 192.168.1.2 (your workstation).
This wil only work if your ISP isn't blocking port 22.
Steve
On 6/27/07, David Katz david@davidkatzconsulting.com wrote: [top post snipped] Please stop top posting on this list.
ne...
David Katz wrote:
Thanks, I do understand that there is an internal and an external address. I want to force my workstation to have the internal address 192.168.1.140 so that my router will forward port 22 to the right machine - it's set up to do that so that my windows stuff works. Can I make Fedora assign a specific internal address? Because interally I'm not always at 192.168.1.2; it seems to depend on which machine logs in first.
I'd be happy to do any reading - can you point me at the right doc? I've searched a lot but haven't got the right keywords or fully understood some of what I've read....
You can set it to use a static IP address. You may also be able to tell the router to always assign the same IP address to the MAC address of the NIC in your machine. Most routers have this option. I use it often to assure that the network printers have the correct IP address.
Mikkel
Around 10:21pm on Wednesday, June 27, 2007 (UK time), David Katz scrawled:
Thanks, I do understand that there is an internal and an external address. I want to force my workstation to have the internal address 192.168.1.140 so that my router will forward port 22 to the right machine - it's set up to do that so that my windows stuff works. Can I make Fedora assign a specific internal address? Because interally I'm not always at 192.168.1.2; it seems to depend on which machine logs in first.
Run system-config-network, and change your nic to use a hard coded IP address, rather than obtaining one through DHCP. Make sure you don't use one that is in the range issued byt your DHCP server (which is probably your router).
Just to be clear, can you answer the following questions.
1. Are you trying to ssh in from a machine on your local network, or via the Internet?
2. Do you know if your ISP gives you a static external IP address, and if so, do you know what it is?
3. Does your router connect to your workstation by a network cable into the network card, or via a USB connection?
I will be offline in an hout for the next couple of days, but others here can probably help if you still need it.
Steve
PS. When posting to this list, You would be better posting any replies to emails below the original email when you reply, or embedded within the body of the original email - not above it, which is top posting and more difficult to follow.
David Katz wrote:
Thanks, I do understand that there is an internal and an external address. I want to force my workstation to have the internal address 192.168.1.140 so that my router will forward port 22 to the right machine - it's set up to do that so that my windows stuff works. Can I make Fedora assign a specific internal address? Because interally I'm not always at 192.168.1.2; it seems to depend on which machine logs in first.
Is it conceivable that your problem has nothing to do with IP addresses, and is because of a bad (eg old) entry in ~/.ssh/known_hosts ?
On Thu, 28 Jun 2007 13:34:15 +0100 Timothy Murphy tim@birdsnest.maths.tcd.ie wrote:
Is it conceivable that your problem has nothing to do with IP addresses, and is because of a bad (eg old) entry in ~/.ssh/known_hosts ?
That will give you an error message about "possible attack".
Or at least, I have seen one every time that has happened to me.
Frank Cox wrote:
On Thu, 28 Jun 2007 13:34:15 +0100 Timothy Murphy tim@birdsnest.maths.tcd.ie wrote:
Is it conceivable that your problem has nothing to do with IP addresses, and is because of a bad (eg old) entry in ~/.ssh/known_hosts ?
That will give you an error message about "possible attack".
I guess so. I actually have buttons to ssh to local machines, and so get no error message in such a case - ssh just fails.
But it was only a thought that there might be a simpler explanation.