Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-24-2002, 10:45 AM
|
#1
|
Member
Registered: Aug 2002
Location: Cape Town, South Africa
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388
Rep:
|
I know I am lazy but...
Can someone tell me in short what I need to do to enable my machine at work to accept ssh logins? At the moment I can not log in from anywhere else, it just says connection refused. I am using RH7.3, and I didn't configure any firewalls or anything, although I may be going through a firewall of the university. I am pretty sure that it is a local setting on the machine though. Where would it be?
|
|
|
09-24-2002, 10:52 AM
|
#2
|
Member
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771
Rep:
|
ps -ax | grep sshd
If sshd is not running, do a
/etc/rc.d/init.d/sshd start
or even
service sshd start
see man pages of sshd and sshd_config. It is amazingly well-documented.
|
|
|
09-24-2002, 10:56 AM
|
#3
|
Senior Member
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127
Rep:
|
check your connection first. ping your remote machine and see if your local machine can reach the remote one. It is possible that the firewall is blocking all incoming connections to your remote machine.
|
|
|
09-24-2002, 12:48 PM
|
#4
|
Member
Registered: Aug 2002
Location: Cape Town, South Africa
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388
Original Poster
Rep:
|
I did that already, it was also my first thought. But I can ping the machine no problem, so it is the way that my machine is configured that is blocking all the ssh connections.
Any idea where I can change that?
|
|
|
09-24-2002, 01:46 PM
|
#5
|
Senior Member
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207
Rep:
|
Edit /etc/hosts.allow and hosts.deny. If you know what you are doing then you can put ALL:ALL in hosts.deny and add SSHD:<yourhost> to hosts.allow or else, if you are not sure then leave hosts deny how it is and just edit hosts.allow adding your IP to SSHD. or just ALL:<yourhost> to be able to access all services form <yourhost>
There are man pages for these files as well i beleive.
Hope that helps
-NSKL
|
|
|
09-24-2002, 04:00 PM
|
#6
|
Member
Registered: Aug 2002
Location: Cape Town, South Africa
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388
Original Poster
Rep:
|
Thanks mate, will try it tomorrow, I have left the office already. I'll let you know what happens.
Cheers.
|
|
|
09-24-2002, 04:47 PM
|
#7
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Quote:
Originally posted by Vlad_M
I did that already, it was also my first thought. But I can ping the machine no problem, so it is the way that my machine is configured that is blocking all the ssh connections.
Any idea where I can change that?
|
Gidday!
Check whether your xinetd has ssh enabled = true :}
Cheers,
Tink
p.s.: Redhat and Mandrake suck :}
|
|
|
All times are GMT -5. The time now is 05:54 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|