[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ssh into a webserver on a shared host




I maintain a few websites on shared servers that are outside of my   
network.

I routinely SSH into them to edit files, etc.  Each time I SSH I have to
authenticate by giving the Username and Password for the account on the shared
server.  That Username is not the same as my Username on the box I use to SSH
from.

Here's the question:  I want to be able to type:

ssh domainname.com
   or
ssh -l username domainname.com
   or
ssh username@domainname.com

and automatically get logged in without having to give a password.

This is easily done when:

    I have a useraccount on both machines under the same name (i.e.
    kevin) and

    I've generated a public key on my home machine using ssh-keygen and

    copied that key to the .ssh/authorized_keys file on the host.

But in my present case, the useraccount on my home box (client) is
kevin, but the useraccount on the shared server (host) box is butakun.

When I generate the publickey on the home box, it generates a key for
kevin@homebox. I can upload this to the SSH server (host), but automatic
signin obviously isn't going to happen.

Anyone been down this path before?

I guess I could create a new useraccount on my home box (client) called
butakun in this case, then run ssh-keygen for butakun and then upload
that to the SSH server where the primary account is butakun.  Is there
anything better than doing it this way?

Thanks  
Kevin

-- 
Kevin Coyner
mailto: kevin@rustybear.com
GnuPG key: 1024D/8CE11941



Reply to: