LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-12-2014, 01:37 PM   #1
pulper
LQ Newbie
 
Registered: Jul 2006
Posts: 18

Rep: Reputation: 0
ssh trying to configure sshd_config problem with ListenAddress and ssh restart


hello - trying to configure ssh on lubuntu. i have two questions that i'm hoping someone can help with.
1. i am using the latest lubuntu (32 bit) for the server. when i make changes to the etc/ssh/sshd_config file
and then want to restart the daemon, I've read that I should issue:
/etc/init.d/sshd restart
However, i get an error message indicating that this file doesn't exist. Therefore, I issue the following command:
/etc/init.d/ssh restart
i get no feedback so i'm not sure what happened. however, the changes that i made to the sshd_config file are not showing up.
I end up having to restart the server for the changes to take place. Any idea what i need to do?

2. in /etc/ssh/sshd_config file, when i change ListenAddress from the default values to the local address of the
server (right now testing over the local network), and then restart the computer (for the changes to take affect -
see #1 above), i am no longer able to ssh into the server from the client (i was with the default value for ListenAddress).
I've tried with the ListenAddress being the IP of the client instead of the server, and still no luck.

When i issue the command:
sudo netstat -anp | grep sshd
with the non-default value for ListenAddress, i get no response.
With the default value for ListenAddress, i get that the server is listening on
0.0.0.0: port#
::: port#

Any ideas?

Thank you

Last edited by pulper; 10-12-2014 at 01:38 PM.
 
Old 10-13-2014, 08:20 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,184

Rep: Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087
The listen address should be the IP address of your server. Can you login into the server on the server itself?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH: sshd_config changes: restart? Linux_Kidd Linux - Software 2 05-22-2013 01:48 PM
[SOLVED] Cannot able to do ssh after doing changes in /etc/ssh/sshd_config suboss87 Linux - Security 2 09-05-2012 11:15 PM
sshd_config : ListenAddress not working michalng Linux - Networking 5 04-06-2010 06:00 PM
/etc/ssh/sshd_config: Permission Denied cK` Linux - Newbie 3 04-05-2010 11:58 PM
SSH Port-Forwarding via ListenAddress loadedmind Linux - Security 4 05-22-2006 11:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration