You are not logged in.
Pages: 1
I have a customer who wants help maintaining his website.. no big deal except his host is only providing an IP and username.. no password. They say I need to generate a public/private keypair and send the private keypair to them. Anyone have any experience with this?
I figure I can generate the keys using
ssh-keygen -t rsa
but I have a few questions:
1. Will the keypair be tied to my username? How would that affect the fact that they've given me a username I need to get access via ssh?
2. What if I want to access the server from a different computer? Do I copy the public key to the 2nd machine?
Thanks..
Offline
1. No, the keypair is independent from the username.
2. Yes, you need to copy the public key to any machines from which you need access.
Offline
Ok, thanks.. I wonder why they gave me a username then? A port scan reveals ftp is open.. I wonder if they are just trying to be difficult!
One follow-up: how important is the passphrase when using ssh-keygen -t rsa? Does it just act as a salt or is there some other purpose to it?
Offline
The public key goes to the server(s) you want to access, and you keep the private key to yourself.
If you want to access the server from an another computer, you should copy the private key to that computer unless you are using ssh-agent to forward your identity. It is also possible to generate another keypair for the other computer.
The passphrase protects the private key. If an attacker gets a copy of a private key that has no passphrase, it is trivial to hijack the identity (and then access all the servers that have the corresponding public key installed).
Offline
And the usrname they've given you is the name on the shell account that they've set up for you. Use the -l flag if it's different from your local username.
Offline
Err... I just stumbled on one thing...
As far as I know, there is "ssh-copy-id" on all systems I know. Now that I think of it, the other systems I know are Debian-based. I've looked over it right now and it looks like it is a script which "sends" a given public key using SSH to a remote account (=append the given public key to user@computer:~/.ssh/authorized_keys)
Now, my question is... why can't I find it in ArchLinux. Isn't it standard? It is VERY handy.
:: / my web presence
Offline
ssh-copy-id is in the /contrib subdirectory in openssh's source i.e. it's not actually part of openssh itself. You could post a feature request to have it included in the Arch package, and in the meantime, it's easy to find online.
Offline
ssh-copy-id is in the /contrib subdirectory in openssh's source i.e. it's not actually part of openssh itself. You could post a feature request to have it included in the Arch package, and in the meantime, it's easy to find online.
Thanks, I found a few months old bug entry in FlySpray on this.
:: / my web presence
Offline
Pages: 1