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.
skyblue01Asked:
Who is Participating?
 
owensleftfootConnect With a Mentor Commented:
For ssh access all you need to do is make sure sshd is started. Its usually installed by default.Issue the command "chconfig sshd on" - if you get an error you will have to install the openssh-server rpm from your fedora installation cdroms. Then reissue the previous command. Then issue the command "service sshd start" to start the ssh server. Adding a user is simple. "useradd windows" will add a new user called windows. "passwd windows" will allow you to set the users password. To use ssh you will need an ssh clent for windows.
You can get a good free one at http://www.chiark.greenend.org.uk/~sgtatham/putty/

The bits about hosts.allow and hosts.deny were because I thought you wanted to only allow access to certain ip addresses. As da99 says this only applies to services run with the xinetd superserver. However most servers can be started from there - sshd included. But I guess you dont need hostbased authentification.
0
 
da99rmdCommented:
What service ftp etc. are you trying to stop allow access to ?
And  what linux distro are you using ?

/Rob
0
 
owensleftfootCommented:
You would put their hostnames (or ip addresses) in /etc/hosts.allow and put ALL:ALL in /etc/hosts.deny
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
da99rmdConnect With a Mentor Commented:
But thats just for indet.d and xinet.d services.

/Rob
0
 
skyblue01Author Commented:
>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?
0
 
skyblue01Author Commented:
Thanks for the detailed explanation.   I'll see what I can do.
0
 
da99rmdCommented:
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
 
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.