Generating key for another account? - SSH

This is a discussion on Generating key for another account? - SSH ; Say I'm on my hostA and my login is joeblow and I have a hostB in a different domain but my login is jblow. Logged in as joeblow on hostA can I create a key with ssh-keygen as jblow? I ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Generating key for another account?

  1. Generating key for another account?

    Say I'm on my hostA and my login is joeblow and I have a hostB in a
    different domain but my login is jblow. Logged in as joeblow on hostA can I
    create a key with ssh-keygen as jblow? I want to be able to ssh and SFTP to
    hostB without being prompted for a password.

    Thanks,

    DD



  2. Re: Generating key for another account?

    "Dr. Dolphin" writes:

    >Say I'm on my hostA and my login is joeblow and I have a hostB in a
    >different domain but my login is jblow. Logged in as joeblow on hostA can I
    >create a key with ssh-keygen as jblow? I want to be able to ssh and SFTP to
    >hostB without being prompted for a password.


    Sure. the ssh key has nothing to do with the username. It simply looks up
    where the id_{r,d}sa private key file contains the appropriate key for the
    message transmitted with the id_{r,d}sa.pub key. It does not check names.
    It does not chech machine names. The whole thing is in those key pairs.
    You just have to make sure you tell the remote system that you want to
    logon as jblow, rather than joeblow.

    ssh jblow@hostB.com
    from hostA will do that.


    >Thanks,


    >DD




+ Reply to Thread