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