Page 1 of 1

How exactly do I use the ssh-key login?

PostPosted: Friday, 6th September 2013, 23:24
by Link
So, I was looking up on the main crawl download site and general googling, but I can't seem to actually figure out how to use the ssh-key they provide to login/access the online server. I am using windows, but do have openssh installing (running through command line). I'm not sure what I should do with the thing the sites provide, and would really love to not have to login everytime. Can anyone tell me how to save/where to put the key long string and how to use it.

Re: How exactly do I use the ssh-key login?

PostPosted: Friday, 6th September 2013, 23:58
by BlackSheep
Would you consider using PuTTY? The instructions for setting it up with the ppk files can be found here:
http://crawl.develz.org/wordpress/howto

Re: How exactly do I use the ssh-key login?

PostPosted: Saturday, 7th September 2013, 01:22
by Link
I have, but i'm using console2, which works better, I'm pretty sure I can do it the linux way since I'm using openssh, any info on that?

Re: How exactly do I use the ssh-key login?

PostPosted: Saturday, 7th September 2013, 04:08
by sgrunt
  Code:
ssh -i <path-to-keyfile> username@server

Re: How exactly do I use the ssh-key login?

PostPosted: Saturday, 7th September 2013, 14:29
by Link
Thanks sgrunt, although when I try to use the unix key given, it just says the identity file does not exist.

Re: How exactly do I use the ssh-key login?

PostPosted: Saturday, 7th September 2013, 17:09
by neil
What's the exact command you're running that gives that "identity file does not exist" error? Remember that if the path has spaces you'll need to quote them.

Re: How exactly do I use the ssh-key login?

PostPosted: Saturday, 7th September 2013, 17:36
by Link
Okay, I just had to give a full path, that gets it working, however it says enter a key passphrase, what is the passphrase supposed to be, and how do I avoid having to give it every single time?

Re: How exactly do I use the ssh-key login?

PostPosted: Saturday, 7th September 2013, 21:09
by neil
There is no passphrase on the key; you should be able to just press ENTER there. It's kind of surprising though, because my openssh doesn't prompt me to enter the passphrase for an unencrypted key.

Re: How exactly do I use the ssh-key login?

PostPosted: Saturday, 7th September 2013, 23:57
by Link
Well, i tried that, but then it just prompts me for the normal password... No idea whats going on.

Re: How exactly do I use the ssh-key login?

PostPosted: Sunday, 8th September 2013, 07:25
by hxy
That means key authentication failed, that's why it's trying password.
Are you using the right key for the server? The servers listed here all use the same CAO key except for CSZO

Re: How exactly do I use the ssh-key login?

PostPosted: Sunday, 8th September 2013, 14:13
by neil
CSZO accepts both its own key and the CAO key, so either should work. Also, remember that you have to specify the user name, which differs on the different servers:

CAO: joshua
CDO: crawl
CSZO: crawl
CLAN: terminal
RHF: rl

You can use either "-l username", or write "username@hostname". The -C option (compression) is also recommended.
So for example:

  Code:
ssh -C -i /path/to/cao_key crawl@crawl.s-z.org
ssh -C -i /path/to/cao_key joshua@crawl.akrasiac.org
ssh -C -i /path/to/cao_key terminal@crawl.lantea.net


More information (some parts specific to CAO) is in CAO's ssh guide

Re: How exactly do I use the ssh-key login?

PostPosted: Sunday, 8th September 2013, 17:25
by Link
So, yea I did that and am using the proper key, still not working, maybe I'll just play webtiles...