Results 1 to 3 of 3

Thread: SSH configuration

  1. #1
    Join Date
    Jan 2009
    Location
    RI or da Bronx
    Beans
    246
    Distro
    Ubuntu 16.04 Xenial Xerus

    SSH configuration

    Until now, I've only used SSH on my desktop in order to allow my laptop to sync files via Unison. My ~/.ssh folder contains

    Code:
    known_hosts
    .config
    id.dsa.pub
    id_dsa
    I can't remember what I did, but I guess I generated the key pair on my laptop.

    Now I want to configure SSH in order to use Drush to coordinate files on my website provider. The articles I see suggest using keygen to generate a key pair, of course. If I do that, my id_dsa files won't change, but known_hosts will have the information from the remote webserver, is that correct? Will there be new files in ~/.ssh ?

    Elementary questions, I know, just want to make sure.

  2. #2
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    ssh-keygen

    Quote Originally Posted by ray field View Post
    ... The articles I see suggest using keygen to generate a key pair, of course. If I do that, my id_dsa files won't change, but known_hosts will have the information from the remote webserver, is that correct? Will there be new files in ~/.ssh ?
    They won't change unless you tell ssh-keygen to overwrite them.

    ssh-keygen has the -f option which will tell ssh-keygen where to place the keys once they are generated.

    e.g.
    Code:
    ssh-keygen -t rsa -b 2048 -f /home/rayfield/.ssh/drush_key_rsa
    So you can put as many key pairs in .ssh as you need. When using them you'll also have to refer to them explicitly.

    Code:
    ssh -i /home/rayfield/.ssh/drush_key_rsa drush.example.org

  3. #3
    Join Date
    Jan 2009
    Location
    RI or da Bronx
    Beans
    246
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: SSH configuration

    Naturally, when I got around to seeing how SSH access worked, it involves a password tied to my account -- in any case, thanks for the helpful reply, I'm always glad for more knowledge!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •