Part 1:
If you want myserver2 to only accept connections from myserver1, then use
libwrap. Libwrap is part of the tcp_wrappers package. After installing
the libwrap.a file somewhere (with the later Linuxes, it's already
installed), build SSH. When building SSH, give 'configure' the
'--with-libwrap' flag, e.g.:
   ./configure --with-libwrap=/usr/local/lib
Assuming that libwrap.a is in /usr/local/lib
This will cause SSH to be built with libwrap support.

Then create a /etc/hosts.allow and /etc/hosts.deny files to restrict
access to the 'sshd' to only myserver1.


Part 2:

To log in from myserver1 to myserver2 without a password, set up
'hostbased' and/or 'publickey' authentication. The instructions for doing
this are in the SSH FAQ, located at
http://www.employees.org/~satch/ssh/faq

--
Gregor Mosheh
[EMAIL PROTECTED]
Systems Admin, Humboldt Internet
707.825.4638


On Thu, 11 May 2000, Mike Alexander Sauvain wrote:

> i'm sorry about my beginner question, but im searching the web now for
> couple
> of hours, i didnt find out that helps me out, so i came to ask:
> i have 2 servers to control, that i need to do from my first server.
> so i need only to let accept connection from my one server.
> my server should be very pretty secure so ineed (andnow my question):
> to connect me only with the command:> ssh myserver2 <- and no other
> login -/
> passphrases ......
> now what i dont understand in all these manuals, what exactly i should
> configure
> these services..
> also what i dont saw / understand was, can i autologin without using
> ssh-agent ?
> 
> sorry, i'm little bit confused.... thanks4all .... mike
> 
> 
> 

Reply via email to