• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 340
  • Last Modified:

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.
0
skyblue01
Asked:
skyblue01
  • 3
  • 2
  • 2
2 Solutions
 
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
 
da99rmdCommented:
But thats just for indet.d and xinet.d services.

/Rob
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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
 
owensleftfootCommented:
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
 
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.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now