Click to See Complete Forum and Search --> : SSH instructions


craig the webguy
03-09-2004, 01:10 PM
I currently ssh into a bunch of linux servers for work via a very good windows SSH client (Putty). I have recently built a linux machine that I want to use for this, but have never configured SSH in Linux before.

1. Can someone give me/refer me to step by step instructions for this? (I run Mandrake 9.1)

2. Can I use the keys from the other client for the Linux client?

Thanks.

squeegy
03-09-2004, 01:33 PM
Step by Step instructions? Sounds like you want us to do the work for you. Google is great!

bradfordgd
03-09-2004, 01:41 PM
You're just using it as a client from a linux host, right? Alot of times it is installed as part of the default installation of say Red Hat or the like. Have you tried yet? Say the host you want to SSH to is name Host1.domain.com and the user you want to connect as is user1, try the following from the linux box you want to use as a client;

# ssh user1@Host1.domain.com

scinerd
03-09-2004, 01:43 PM
1. Can someone give me/refer me to step by step instructions for this? (I run Mandrake 9.1)
there are two rpms openssh and openssh-server that you need both of which should be on your media. I would suggest updating them to the latest. Once the server is installed you would start it like any other service. In /etc/ssh you will find ssh_config and sshd_config. The files have lots of comments so you should be able to do this. If you have any specific questions post them here and I will check back.

2. Can I use the keys from the other client for the Linux client?
I'm not sure why you would wan to do this. When you start the server it checks for keys and if they are not there it makes them. You want them to be different so it's more secure.

craig the webguy
03-09-2004, 03:15 PM
Originally posted by squeegy
Step by Step instructions? Sounds like you want us to do the work for you. Google is great!

No, I don't want others to do the work for me. Thanks for the "**** you. Figure it out yourself." attitude.

Originally posted by scinerd1. Can someone give me/refer me to step by step instructions for this? (I run Mandrake 9.1)
there are two rpms openssh and openssh-server that you need both of which should be on your media. I would suggest updating them to the latest. Once the server is installed you would start it like any other service. In /etc/ssh you will find ssh_config and sshd_config. The files have lots of comments so you should be able to do this. If you have any specific questions post them here and I will check back.

2. Can I use the keys from the other client for the Linux client?
I'm not sure why you would wan to do this. When you start the server it checks for keys and if they are not there it makes them. You want them to be different so it's more secure.

Thanks. I didn't know where the config files were located and the instructions I found assumed that I had more advanced knowledge of Linux than I already do. That will help a great deal.

Also, thanks bradfordgd - I wasn't putting my username in front of the domain name.

mdwatts
03-09-2004, 03:27 PM
I just read the documentation (readme's and manpages) included with the openssh package.

rpm -ql openssh

/etc/init.d/sshd
/etc/pam.d/sshd
/etc/ssh
/etc/ssh/moduli
/etc/ssh/ssh_config
/etc/ssh/sshd_config
/usr/bin/scp
/usr/bin/sftp
/usr/bin/slogin
/usr/bin/ssh
/usr/bin/ssh-add
/usr/bin/ssh-agent
/usr/bin/ssh-copy-id
/usr/bin/ssh-keyconverter
/usr/bin/ssh-keygen
/usr/bin/ssh-keyscan
/usr/lib/ssh
/usr/lib/ssh/sftp-server
/usr/lib/ssh/ssh-keysign
/usr/sbin/rcsshd
/usr/sbin/sshd
/usr/share/doc/packages/openssh
/usr/share/doc/packages/openssh/CREDITS
/usr/share/doc/packages/openssh/ChangeLog
/usr/share/doc/packages/openssh/LICENCE
/usr/share/doc/packages/openssh/OVERVIEW
/usr/share/doc/packages/openssh/README
/usr/share/doc/packages/openssh/README.SuSE
/usr/share/doc/packages/openssh/README.kerberos
/usr/share/doc/packages/openssh/RFC.nroff
/usr/share/doc/packages/openssh/TODO
/usr/share/man/man1/scp.1.gz
/usr/share/man/man1/sftp.1.gz
/usr/share/man/man1/slogin.1.gz
/usr/share/man/man1/ssh-add.1.gz
/usr/share/man/man1/ssh-agent.1.gz
/usr/share/man/man1/ssh-copy-id.1.gz
/usr/share/man/man1/ssh-keyconverter.1.gz
/usr/share/man/man1/ssh-keygen.1.gz
/usr/share/man/man1/ssh-keyscan.1.gz
/usr/share/man/man1/ssh.1.gz
/usr/share/man/man5/ssh_config.5.gz
/usr/share/man/man5/sshd_config.5.gz
/usr/share/man/man8/sftp-server.8.gz
/usr/share/man/man8/ssh-keysign.8.gz
/usr/share/man/man8/sshd.8.gz
/var/adm/fillup-templates/sysconfig.ssh
/var/lib/sshd

man ssh
man ssh_config
man ssh-keygen

etc.

EnigmaOne
03-09-2004, 03:36 PM
Originally posted by craig the webguy
No, I don't want others to do the work for me. Thanks for the "**** you. Figure it out yourself." attitude.

Well, you got your answer, but you may want to print this (http://www.catb.org/~esr/faqs/smart-questions.html) out and keep it by your monitor for future reference.

craig the webguy
03-09-2004, 04:34 PM
I appreciate the link, and he does make some valid points, especially about things like spelling, grammar, etc. However, I don't share the widespread view that Eric Raymond walks on water. Esp. after reading pieces of exquisite crap like this:

(Some people assert that many hackers have a mild form of autism or Asperger's Syndrome, and are actually missing some of the brain circuitry that lubricates `normal' human social interaction. This may or may not be true. If you are not a hacker yourself, it may help you cope with our eccentricities if you think of us as being brain-damaged. Go right ahead. We won't care; we like being whatever it is we are, and generally have a healthy skepticism about clinical labels.)

So... I have all of Eric's "rules" that need to be abided by, but if someone is a jerk to someone else that doesn't know Linux like the back of their hand, I'm to treat them like Rain Man. Please.

cybertron
03-09-2004, 05:26 PM
He did have a point. I googled "ssh setup linux" and the first result was step-by-step instructions for getting it setup from scratch. You might want to consider that next time you think someone is just giving you attitude.

craig the webguy
03-09-2004, 07:15 PM
Originally posted by cybertron
He did have a point. I googled "ssh setup linux" and the first result was step-by-step instructions for getting it setup from scratch. You might want to consider that next time you think someone is just giving you attitude.

That's the difference between giving attitude and helping someone out. I tried "configure ssh" and didn't get much help except for techie manuals written in netadmin-speak. He gave me attitude. You helped me out.

Thanks, by the way.

cybertron
03-09-2004, 07:23 PM
I tried "configure ssh" and didn't get much help except for techie manuals written in netadmin-speak.

It probably wouldn't hurt to put info like that in your post. It lets people know you've tried, and then they don't suggest things that you've already done.

Edit: Happy to be helpful any time. It's nice to finally know enough to be helpful, instead of always asking questions :)

squeegy
03-09-2004, 07:56 PM
What can I say I'm an a**-hole. But simple questions like this can be solved easily by looking at a man page or google. Thanks for those who back my attitude, and for those who don't I could care less. Oh yeah and I mainly took this stance because it is something you're doing for work. Shouldn't you already be knowledable in this area if you're getting paid for it?

sploo22
03-09-2004, 08:13 PM
Wow, that was an awfully quick way to start a flame war... :rolleyes:

glasdave
03-09-2004, 08:49 PM
It's hard to get to answers, when you have no idea of how to form your questions. In searching, as we can see, syntax is everything......just my .02;)

mdwatts
03-10-2004, 12:52 PM
Originally posted by squeegy
What can I say I'm an a**-hole. But simple questions like this can be solved easily by looking at a man page or google. Thanks for those who back my attitude, and for those who don't I could care less. Oh yeah and I mainly took this stance because it is something you're doing for work. Shouldn't you already be knowledable in this area if you're getting paid for it?

If you cannot 'play nice' here, then please take your comments elsewhere. I don't like getting up in the morning and turning on my pc only to find I've received Private Messages regarding complaints about certain members.

Originally posted by craig the webguy
I currently ssh into a bunch of linux servers for work via a very good windows SSH client (Putty). I have recently built a linux machine that I want to use for this, but have never configured SSH in Linux before.

1. Can someone give me/refer me to step by step instructions for this? (I run Mandrake 9.1)

2. Can I use the keys from the other client for the Linux client?

Thanks.

Personally I do not find anything wrong with the question being asked as the user does have experience with SSH on Windows, BUT NOT with running SSH on Linux. They asked if anyone had any instructions they could post or if someone could post a link to guides that could possibly help.

WayStar
03-10-2004, 01:01 PM
Originally posted by craig the webguy

So... I have all of Eric's "rules" that need to be abided by...

I like that Eric has recently started picking up on the notion that the "newbie landscape" is changing, and that we perhaps shouldn't expect new users to research the nuts and bolts just to get something to work.

-Waylena, who personally likes digging into the nuts and bolts, but doesn't expect her mom to do the same. :D

cybertron
03-10-2004, 01:05 PM
Seriously, this has gotten way out of hand. Plus it's way off topic now. This whole thing is not so important that PM's should need to be sent to mods, so let's all just shake hands and go about our merry ways.:)