Skip to main content

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Asked
Viewed 7k times
0

I have 2 machines running on Linux. One has ssh2 configured SOURCE and another has ssh1 configured DESTINATION. How do I generate a key pair in SOURCE whose public key can be understood by DESTINATION? Ideally I need to generate a SSH1 key pair using my installed ssh-keygen in a SOURCE.

2 Answers 2

1

Generate v1/v2 SSH keys with ssh-keygen -t rsa1 or ssh-keygen -t rsa. Then you can copy your key from SOURCE to DESTINATION (and vice-versa) with ssh-copy-id.

2
  • Oops editing my answer: ssh-keygen generates v2 keys by default, so you'd only need to say ssh-keygen -t rsa1 if you want a v1 key, and say ssh-keygen -t rsa if you want a v2 key.
    RSD3
    –  RSD3
    2015-08-12 13:14:27 +00:00
    Commented Aug 12, 2015 at 13:14
  • 2
    You may want to "edit" your previous reply directly :)
    Mathew Paret
    –  Mathew Paret
    2015-08-12 13:17:16 +00:00
    Commented Aug 12, 2015 at 13:17
0

Use the Command to generate the key

ssh-keygen -t rsa

To Copy use the command give your source and destination

ssh-copy-id

You can change the permission to 700 in .ssh folder

chmod 700 ............
1
  • This is not what I was looking for. This one generates ssh2 key. Actual answer has been given by @RSD3
    Mathew Paret
    –  Mathew Paret
    2015-08-12 14:01:17 +00:00
    Commented Aug 12, 2015 at 14:01

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.