Password-less SSH Keys, one not working

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

There's three systems involved here.

1) Production
2) Workstation
3) Automation

Numbers 2 and 3 are on the same network, #1 is on a remote network.
#3 does not have a monitor attached, it is managed via SSH from #2.

#2 has public/private keys available for, and is able to connect to #1 and #3 without a password just fine.

I need to connect to #1 from #3 in the same way. I first tried copying the keys #2 uses for #1 over to #3. I'm prompted for a password when I attempt to connect to #1 from #3. I've used ssh-keygen while logged into #3 and imported those keys to #1 just as I did when setting up #2 to connect to #1. I'm still prompted for a password.

Why am I being prompted for a password when connecting from #3 and not for #2 ?

The only difference I can think of is, when connecting from #3, I'm already remotely logged into #3 from #2.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

I'd still like to know why I have to do this, but I've got it working.

I'm using the same key for #2 and #3 now. Both systems have the public/[private key files in their /.ssh/ folders. When connecting to #1 from #3, I use the -i "identity_file" switch along with the path to my key file.

Works like a charm that way.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 10 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.