Link to home
Start Free TrialLog in
Avatar of skyblue01
skyblue01

asked on

linux incoming connection

If I'd like to allow certain remote hosts to log into my linux box, how do I specify those hosts (i.e. allow remote login)?   Can I type a command from a bash shell or do I save the name/ip, username of remote host in some file, and if so, which one is it and how can I specify?   Please let me know.
Avatar of da99rmd
da99rmd

What service ftp etc. are you trying to stop allow access to ?
And  what linux distro are you using ?

/Rob
You would put their hostnames (or ip addresses) in /etc/hosts.allow and put ALL:ALL in /etc/hosts.deny
SOLUTION
Avatar of da99rmd
da99rmd

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of skyblue01

ASKER

>What service ftp etc. are you trying to stop allow access to ?
>And  what linux distro are you using ?

I'm just trying to allow ssh access from my windows box(say, hostname windows) to my linux box and was trying to setup the linux box to accept such incoming connection.   In my windows box, when I initiate an ssh connection to linux, I'll be needing a login name and a password.   This needs to be set up in linux, right?   How would I do that?

I'm using FedoraCoreI

>But thats just for indet.d and xinet.d services.

What do you mean by that?   You mean what I said above doesn't apply to /etc/host.allow and /etc/host.deny?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for the detailed explanation.   I'll see what I can do.
You dont have to do a computer specific account to allow/disallow access you can as its described above access this account from anyware.

If you want to just be be able to access the sshd from you linuc computrer you have to block it in your firewall.
do you have a firewall running at this moment ?
If you want help setting up the rule just post back.

/Rob