Difference between revisions of "Application talk:OpenSSH"

From WebOS Internals
Jump to navigation Jump to search
m (+topic)
Line 6: Line 6:
  
 
When you run ssh it will use each file until it finds one which works.
 
When you run ssh it will use each file until it finds one which works.
 +
:just FYI, you can also re-use the same id_rsa and id_rsa.pub from one device on another. [[User:Dwc|Dwc]] 22:57, 21 September 2011 (UTC)

Revision as of 23:57, 21 September 2011

Multiple Keys

If you have more than one device and you are banging your head against the wall because you can't get ssh into one or the other or both to work, you may be interested to learn that the id_rsa file is not meant to contain more than one key. If you generated keys on webOs on each of your devices, put the secret keys in separate files on the client, e.g. id_rsa.pre2 and id_rsa.tp, and then create .ssh/config with multiple entries

IdentityFile ~/.ssh/id_rsa.pre2
IdentityFile ~/.ssh/id_rsa.tp

When you run ssh it will use each file until it finds one which works.

just FYI, you can also re-use the same id_rsa and id_rsa.pub from one device on another. Dwc 22:57, 21 September 2011 (UTC)