Re: A question about ssh RSA key connection
- From: Sharad <sharad2011@xxxxxxxxx>
- Date: Tue, 25 Aug 2009 00:39:49 +0530 (IST)
How is your DNS setup? How does this work when you connect with hostnames instead of IP Addresses? Do other two aliases (uplink0:1 and 0:2) have same name as primary interface's?
Sharad
--- On Mon, 24/8/09, 徐广 <xuguang181@xxxxxxxxx> wrote:
From: 徐广 <xuguang181@xxxxxxxxx>
Subject: Re: A question about ssh RSA key connection
To: "ming.zym@xxxxxxxxx" <ming.zym@xxxxxxxxx>
Cc: secureshell@xxxxxxxxxxxxxxxxx
Date: Monday, 24 August, 2009, 8:46 AM
Thanks ming for your reply
When I connect to 47.154.169.130 the from ip would
be
47.154.169.130, but when I try to connect to other servers,
the from
ip became 47.154.169.128, so this is really refusing me.
2009/8/24 ming.zym@xxxxxxxxx
<ming.zym@xxxxxxxxx>:
this is far from a ssh problem, as the connect srcaddress is selected
by system, mostly by the default routing set, in yourcase, there are
many IP in the same vlan/ip space, that will bechoosed to be the first
ip in your ip list, .130 is the first then.your src ip
you may use the "-b" option if you really need to set
address.up ssh connection
在 2009-08-22六的 12:10 +0800,徐广写道:
Hi
I recently met with a problem when trying to set
rsa -fthrough the ssh key
I first create a key through command ssh-keygen -t
created under /.ssh/.ssh/pmcftp_id_rsa -P "" , two files would be
an entry into thepmcftp_id_rsa and pmcftp_id_rsa.pub, then I insert
from="47.154.169.129,47.154.169.128" this should.pub file -
sources of these tworestrickt that the ssh key should only work for
~pmcftp/.ssh, afterips.
Then I push the public key to another server under
ssh -I pmcftp -i.that, I start the ssh connection through command
connection would be set up./ssh/pmcftp_id_rsa <server ip>, the ssh
has several ipwithout asking for the passwd.
But, when I create the ssh key on a server that
flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL>address, like following:
=====
ifconfig -a
lo0:
mtu
127.0.0.1 netmask ff0000008232 index 1
inet
flags=1040863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST,DEPRECATED,IPv4>uplink0:
47.154.169.130 netmask ffffff00 broadcast 47.154.169.255mtu 1500 index 2
inet
0:0:bb:2e:74:eether
flags=1000863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST,IPv4>uplink0:1:
47.154.169.128 netmask ffffff00 broadcast 47.154.169.255mtu 1500 index 2
inet
flags=1000863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST,IPv4>uplink0:2:
47.154.169.129 netmask ffffff00 broadcast 47.154.169.255mtu 1500 index 2
inet
flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtuuplink1:
1500 index 3
192.168.47.1 netmask ffffff00 broadcast 192.168.47.255inet
0:0:bb:2e:74:dether
47.154.169.129 into the from ip list=====
And added ip 47.154.169.128 and
serverentry in the key file, then I push the ssh key to
the source)47.154.169.130 (which should be the same server as
through command ssh -IThen when I try to start the ssh connection
the key does not workpmcftp -i. ./ssh/pmcftp_id_rsa 47.154.169.130 ,
key but not from aanymore, and the log give info like this
==
Authentication tried for pmcftp with correct
ip=47.154.169.130)permitted host (host=iems196-unit0,
47..154.169.130, and==
Obviously, here the from ip list does not include
47.154.169.130 not other ipsthe ssh connection treate the from ip as
./ssh/pmcftp_id_rsaof this server.
Then I tried another command
Ssh -b 47.154.169.128 -I pmcftp -i.
57.154.169.128 and it's in the47.154.169.130 the key works well again.
The -b option is binding the from ip to
is obtained? Whenfrom ip list in the key file.
how the ip of the from side of the ssh connection
ips how would the ipthe from side of the ssh connection has several
advance!address be determined by the to side?
Any info would be highly appreciated, thanks in
Best regards
Guang
--
徐广
13581797776
--
徐广
13581797776
Love Cricket? Check out live scores, photos, video highlights and more. Click here http://cricket.yahoo.com
- References:
- Prev by Date: Re: A question about ssh RSA key connection
- Next by Date: Calling User Program
- Previous by thread: Re: A question about ssh RSA key connection
- Next by thread: Calling User Program
- Index(es):
Relevant Pages
|