altair4,
THANKS........Your suggestion worked PERFECT!
Code: Select all
sudo sh -c "echo 'manual' > /etc/init/ssh.override"
On restart sshd isn't started as seen by:
* sshd is not running
Now, I can start/stop/restart sshd when I need it.
Code: Select all
sudo start ssh
sudo restart ssh
sudo stop ssh
I also found a reference at:
http://askubuntu.com/questions/56753/ho ... omatically
For versions with ssh started by upstart, run "touch /etc/ssh/sshd_not_to_be_run". The upstart init script checks for this file and, if existent, does not start sshd.
When I tried this method, sshd did not start on boot, but I could never get sshd running when I started ssh.
So, I kept the ssh.override method, which allows me to start/stop sshd as needed.
THANKS.
Larry