Mailinglist Archive: opensuse (4547 mails)

< Previous Next >
Re: [SLE] Simple SSH setup - Advice needed
  • From: Bruce Marshall <bmarsh@xxxxxxxxxx>
  • Date: Wed, 5 May 2004 13:48:31 -0400
  • Message-id: <200405051348.31678.bmarsh@xxxxxxxxxx>
On Wednesday 05 May 2004 01:16 pm, Sandor wrote:
> Hi,
>
>
> I would need some advice on a simple problem:
>
> I ahave two machines running SUSE 9.0. I want to log in to one system,
> but run some shell scripts on the other one. So far, I used to SSH to
> the remote machine, start the script and that's it.
>
> The only inconvenience is that SSH always ask for my password. I have
> the same user name, same password on both machines. I read in the SSH
> man page that it can bypass the second login putting the machine name
> into /etc/hosts.equiv, but it does not seems to work. (It also said that
> this method is switched off for security reasons)
>
> I was reading the SSH documentation for an hour but still could not
> bypass the second password requirement...
>
> Call me lazy, but after that I decided to give up and ask someone...
>
> :-))) I assume, the solution is easy if someone knows how to do it!
>
> I would appreciate if someone could give me a hand!
>
>
> Thank you!
>
>
> Sandor Laza

From your own machine: (assume userid = sandor)

1) At an xterm prompt, enter: ssh-keygen -t dsa

(hit enter at every prompt including where to store the file)

2) cd to: ~/.ssh

3) enter: ssh-copy-id -i id_dsa.pub sandor@<remote-mach-id>

You should now be able to: ssh <remote-mach-id>

without a password.

As always, replace <remote-mach-id> with the actual name of the remote
machine.




--
+----------------------------------------------------------------------------+
+ Bruce S. Marshall bmarsh@xxxxxxxxxx Bellaire, MI 05/05/04 13:43 +
+----------------------------------------------------------------------------+
"This file will self-destruct in five minutes."

< Previous Next >
Follow Ups
References