Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting up ssh - How can I do this? 1

Status
Not open for further replies.

josel

Programmer
Oct 16, 2001
716
US
Howdy!

SuSE 9.1 Professional

As some of you already learned from my previous posts, I am new to this and I am trying to mimic my existing system (SCO UNIX 5.0.6). In my SCO box, I use telnet to connect XP PCs to server. I never got around to using ssh in SCO and now, I've found that LINUX community suggests to use ssh over telnet.

That said, how can I verify that ssh is or not installed? If not installed, how can I install it? How can I configure it? Where do I learn about it to read up on it?

I have terminal emulators capable of using ssh (come to think of it, why did I not try connecting using ssh instead of using telnet?). I tried using telnet and it failed (connection refused). As started looking into why and how can I fix this and that is how I arrived where I am at right now (no where).

Thank you all in advance!


Jose Lerebours


KNOWLEDGE: Something you can give away endlessly and gain more of it in the process! - Jose Lerebours
 
SSH is usually installed and enabled by default. It has been on all my SUSE installations, anyway. Try "ps ax |grep sshd" to see if it's running. "chkconfig --list sshd" should tell you if it's configured to start automatically. "/etc/init.d/sshd start" will start it if it's not running.

The configuration file is /etc/sshd/sshd_config. Normally, root isn't allowed to connect but you can change that (I wouldn't).

You can't telnet to an SSH server. If you telnet on port 22 you should get a banner, but that's it. You need an SSH client, which you indicate that you have.
 
OK, making some progress.

ssh is running and it looks healthy. Now, my ssh client asks me confirm "key" and "port".

It suggested a long key that looked a lot like a mac address. I'm not sure what to do here. I found directory /etc/ssh and there are a bunch of files some of which have the string "key" as part of the file name (these are data files).

How can I find what my key i?

Thanks;

Jose Lerebours


KNOWLEDGE: Something you can give away endlessly and gain more of it in the process! - Jose Lerebours
 
I just started using ssh recently, but from what I've experienced, the first time I connect from a new client to a Server running ssh, I always get that confirmation message. Just click OK or whatever, you won't get prompted with that message in future connections. A file is created on the Server, perhaps the client, that will store the key.
 
True. If the message looks like this:

The authenticity of host 'remote-host (172.22.3.5)' can't be established.
RSA key fingerprint is dc:e8:5e:84:e3:e7:8b:a4:7a:82:13:1f:4b:b6:bf:07.
Are you sure you want to continue connecting (yes/no)?

... then this is normal. Say "yes" and the key will be stored in ~/.ssh/known_hosts so you won't be asked again. Actually, I don't know where is is stored on Windows clients, but it's put somewhere.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top