LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-04-2003, 03:56 PM   #1
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Rep: Reputation: 30
Getting started with SSH help...


Hello everyone.

I have a quick question. I was wondering if there might be some HOW-TO's or getting started with SSH tutorials that anyone may know of.

I would like to start learning on to use ssh keys for local and remote servers.

I have yet to find a decent how to on this.

Anyone have any suggestions?

Thanks.

Tarballed
 
Old 04-04-2003, 04:09 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I struggeld for a while on this too try this

1) login as USER on the client (where you want to connect from)
2) ssh-keygen -t dsa
(don't suppy a passphrase now - you can do that later once the first bit works)
3) scp /home/USER/.ssh/id_dsa.pub REMOTEHOST:/home/USER/.ssh/authorized_keys2
4) ssh REMOTEHOST

That's about it - if you want to put multiple keys on the host you will need to copy the file over then use cat to append it to authorized_keys2. Other than that just make sure you have sshd running on the host.
 
Old 04-04-2003, 06:48 PM   #3
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Original Poster
Rep: Reputation: 30
Thanks for your input david_ross.

I have one more question for you.

I have been able to generate my keys and put them into the appropriate directories on the local and remote machines.

However, when I SSH from box 1 to server 1, I was expecting to be prompted for the passphrase, but I am not.

I seem to be missing, as I was under the impression that once I started generating keys and SSH'ing to the machines that were setup with the keys, I would be asked for a passphrase.

So far, I just enter my useraccount password on the machine I am SSH'ing to.

Any ideas?

Tarballed
 
Old 04-05-2003, 04:55 AM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
If you set up a passphrase you need to run ssh-agent on your local machine when you first login locally - the passphrase is then saved for that session and used whenever you try to make an ssh connection. The whole idea of ssh is that no use identifiable passwords etc are sent over the network. Therefore passphrases are supposed to be just that "phrases". For example "The red cat SPAT on his SUNS brick yellow mat." In other words a long phrase that nobody should be able to guess.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
Mac OS X ssh client / linux sshd : ssh hangs/disconnects Apollo77 Linux - Networking 1 05-24-2006 11:53 AM
I am just getting started at this... skeyeman Linux - Newbie 6 05-09-2005 05:17 PM
Just getting started craniusmaximus Linux - Newbie 2 11-30-2002 11:30 AM
Getting SSH started on RH7.0 raazer Linux - Newbie 2 03-06-2001 07:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration