Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
|
 |
06-01-2005, 05:57 AM
|
#1
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905
Rep:
|
Enable SSH
I just installed Debian Linux on a server at home and am not sure if I can login via SSh to the machine. Is there a way I can find out if SSH is enabled and if not, how to enable SSH connections on the machine?
|
|
|
06-01-2005, 06:09 AM
|
#2
|
Member
Registered: May 2005
Location: Mid Wales (UK)
Distribution: Slackware 8.0, Suse 10.0/1/2, CentOS (SMEServer7)
Posts: 38
Rep:
|
you should be able to find if the ssh daemon is running by typing..
ps -C sshd
HTH
|
|
|
06-01-2005, 06:14 AM
|
#3
|
Member
Registered: Jan 2004
Location: Duesseldorf /Germany
Distribution: Gentoo amd64 / Debian
Posts: 226
Rep:
|
I don't think I understand you correctly...
to test if sshd is up and running, simply try
"ssh myuser@localhost"
If you get a passwordprompt, sshd is running.....
Or do you mean something else?
|
|
|
06-01-2005, 07:25 AM
|
#4
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905
Original Poster
Rep:
|
I was trying to see if there is a way to see in my system settings if SSH was enabled.
Can I try "ssh myuser@localhost" in my firefox browser to test this?
If it does not work, how do I enable SSH on my system?
|
|
|
06-01-2005, 07:35 AM
|
#5
|
Member
Registered: May 2005
Location: Mid Wales (UK)
Distribution: Slackware 8.0, Suse 10.0/1/2, CentOS (SMEServer7)
Posts: 38
Rep:
|
No, you need to issue that command at a system prompt NOT a browser.
|
|
|
06-01-2005, 09:00 AM
|
#6
|
LQ Newbie
Registered: May 2005
Posts: 1
Rep:
|
typing...
netstat -a |grep ssh
start ssh
/etc/init.d/sshd start | stop | restart
|
|
|
06-01-2005, 04:31 PM
|
#7
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905
Original Poster
Rep:
|
Quote:
Originally posted by MikeAtVillage
you should be able to find if the ssh daemon is running by typing..
ps -C sshd
HTH
|
Code:
carlos@debian:~$ ps -C sshd
PID TTY TIME CMD
1581 ? 00:00:00 sshd
Quote:
typing...
netstat -a |grep ssh
start ssh
/etc/init.d/sshd start | stop | restart
|
Code:
debian:~# /etc/init.d/sshd start
-su: /etc/init.d/sshd: No such file or directory
I tried to login from work usin Putty and it failed so I am now in front of my machine and am not sure what the problem is.
|
|
|
06-01-2005, 07:38 PM
|
#8
|
Member
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290
Rep:
|
Well, it seems SSH is running on your machine.
Are you behind a router of any sorts? Have you tried to log in from a computer on your home network?
I think Debian uses the "service" function to start things. Try "service sshd start" and see what that gives you.
|
|
|
06-01-2005, 08:13 PM
|
#9
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905
Original Poster
Rep:
|
Yes, SSH is running and working fine. I just had to set SSH to forward to my debian LAN IP.
I still can't figure out how to start | stop | restart SSH service.
Code:
debian:~# service ssh restart
-bash: service: command not found
|
|
|
06-02-2005, 01:14 PM
|
#10
|
Member
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290
Rep:
|
http://www.linuxquestions.org/questions/history/320881 << There you go.
Just type cd /etc/init.d and see how ssh is started. It may be with sshd or simply ssh. Hard telling. If it's not there, you can always apt-get it again and hopefully the correct script will be installed.
[edit]You are logged in as root when you try to do /etc/init.d/(servicename) start|stop|restart|zap, right?
Last edited by ARC1450; 06-02-2005 at 01:15 PM.
|
|
|
09-17-2005, 03:33 PM
|
#11
|
LQ Newbie
Registered: Sep 2005
Posts: 1
Rep:
|
Fedora 3 problem with ssh
Hi all,
I just installed Fedora 3 and I disabled Firewall already.
I connected my Fedora box behide my DSL rounter.
I forward port 22 to my Fedora box.
I can log in to ssh by local IP but I cannot access by external IP.
I got an message "Server Responded Connection closed by remote host."
I look on sshd_config. I did enble everything but it still does not work.
If any one can help, I will be appreciated.
Thank you
|
|
|
09-17-2005, 11:27 PM
|
#12
|
Member
Registered: Jun 2005
Location: q3dm7
Distribution: Mandriva 2010.0 x86_64
Posts: 338
Rep:
|
It would help if you mentioned which DSL router it is.
Do you need to reboot the router for the port forward to activate?
Is port 22 reserved for the router's own use? This may not be obvious. Try forwarding a high port number on your router to port 22 on your Fedora box and see if that works.
|
|
|
All times are GMT -5. The time now is 02:44 PM.
|
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
|
|