"Dr. Dolphin" <drdolphin@sonic.net> 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