View previous topic :: View next topic |
Author |
Message |
spOOwn Apprentice
Joined: 02 Nov 2002 Posts: 259 Location: Belgium
|
Posted: Thu Sep 18, 2008 6:52 pm Post subject: SSH authentification question ! |
|
|
Hello all,
I was wondering if it is possible to connect to a remote host with another user that I'm defined on the local host, and this connection to be without passoword, I means with ssh key !
I'm asking this because on a local station I'm defind with UID : UID_1 say
and there is no problem to connect to a lot of remote host where I'm also defined with this UID, but on other host, we were created with other UID, let's say UID_2 ! These are the rules, and I cannot change something !
Of course, when I try to log in to the remote host I always use the other UID ( UID_2 ) , and so execute this command :
Code: |
ssh -l UID_2 remote_host
|
and hence, cannot use my ssh key , and I'm force to use the password authentification ! I did try to connect with option -i and specify my identification key, but doesn't change anything !
Am I clear enough ? If not, ask me of course
Does anyone have an idea ?
Thanks a lot ! _________________ ###########################
# Web site : http://sys-admin.wikidot.com #
########################### |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9883 Location: almost Mile High in the USA
|
Posted: Thu Sep 18, 2008 7:27 pm Post subject: |
|
|
It works fine for me without anything special...
Code: | user1@doujima:~$ ssh -l user2 geode
Welcome to geode
~ $
|
Make sure the destination machine is set up properly to accept public key authentication (typical things, like permissions, whether or not your public key has been installed, etc.). Check remote logfiles for clues, could also run ssh with -v to see if there's any clues there. _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
spOOwn Apprentice
Joined: 02 Nov 2002 Posts: 259 Location: Belgium
|
Posted: Thu Sep 18, 2008 7:41 pm Post subject: |
|
|
now, that you tell me that, I was wondering if this message :
Code: |
debug1: Authentications that can continue: keyboard-interactive
|
can be the cause of my problem ! Does it means that I can only use keyboard password and not ssh key ? _________________ ###########################
# Web site : http://sys-admin.wikidot.com #
########################### |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9883 Location: almost Mile High in the USA
|
Posted: Thu Sep 18, 2008 11:04 pm Post subject: |
|
|
Did it report any clues or reasons for why it rejected other forms of authentications in the -v output?
Kind of weird, but some sites may force people to use armored password authentication with ssh2... That would be strange indeed. _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
|