How exactly do I use the ssh-key login?


Problems running or configuring the software, commands & options, compiling, different platforms, using the interface, documentation, etc.

User avatar

Halls Hopper

Posts: 81

Joined: Monday, 5th November 2012, 17:06

Location: Canada

Post Friday, 6th September 2013, 23:24

How exactly do I use the ssh-key login?

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.
"Well excuse me, princess..."

Ziggurat Zagger

Posts: 3163

Joined: Friday, 6th January 2012, 18:45

Post Friday, 6th September 2013, 23:58

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

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
User avatar

Halls Hopper

Posts: 81

Joined: Monday, 5th November 2012, 17:06

Location: Canada

Post Saturday, 7th September 2013, 01:22

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

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?
"Well excuse me, princess..."
User avatar

Dungeon Master

Posts: 291

Joined: Wednesday, 6th June 2012, 18:59

Post Saturday, 7th September 2013, 04:08

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

  Code:
ssh -i <path-to-keyfile> username@server

For this message the author sgrunt has received thanks:
serq
User avatar

Halls Hopper

Posts: 81

Joined: Monday, 5th November 2012, 17:06

Location: Canada

Post Saturday, 7th September 2013, 14:29

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

Thanks sgrunt, although when I try to use the unix key given, it just says the identity file does not exist.
"Well excuse me, princess..."
User avatar

Dungeon Master

Posts: 502

Joined: Wednesday, 7th March 2012, 13:25

Location: Lexington, KY, US

Post Saturday, 7th September 2013, 17:09

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

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.
User avatar

Halls Hopper

Posts: 81

Joined: Monday, 5th November 2012, 17:06

Location: Canada

Post Saturday, 7th September 2013, 17:36

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

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?
"Well excuse me, princess..."
User avatar

Dungeon Master

Posts: 502

Joined: Wednesday, 7th March 2012, 13:25

Location: Lexington, KY, US

Post Saturday, 7th September 2013, 21:09

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

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.
User avatar

Halls Hopper

Posts: 81

Joined: Monday, 5th November 2012, 17:06

Location: Canada

Post Saturday, 7th September 2013, 23:57

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

Well, i tried that, but then it just prompts me for the normal password... No idea whats going on.
"Well excuse me, princess..."

hxy

Slime Squisher

Posts: 418

Joined: Friday, 11th February 2011, 13:09

Post Sunday, 8th September 2013, 07:25

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

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
User avatar

Dungeon Master

Posts: 502

Joined: Wednesday, 7th March 2012, 13:25

Location: Lexington, KY, US

Post Sunday, 8th September 2013, 14:13

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

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
User avatar

Halls Hopper

Posts: 81

Joined: Monday, 5th November 2012, 17:06

Location: Canada

Post Sunday, 8th September 2013, 17:25

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

So, yea I did that and am using the proper key, still not working, maybe I'll just play webtiles...
"Well excuse me, princess..."

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 34 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.