Ubuntu :: Can't Stop Sshd From Startup?
Jun 30, 2010
i installed it, but every time i start my system, sshd is running, but i can't find out where it's startup entry is located.Code:ls /etc/rc*.d | grep sshreturns nothing, which indeed is true, 'cause i removed the links from the runlevel directories. i checked the rc.local file which is empty and never added a line anywhere to start the ssh daemon explicit.i'm using the latest ubuntu with updates and everything (at least i think so). in my gnome startup application preferences the only thing related to ssh is the ssh key agent. but if i deactivate it, sshd still startsup.
Code:
sudo update-rc.d -f ssh remove
didn't helped either
[code]....
View 9 Replies
ADVERTISEMENT
Jul 7, 2010
I see in /etc/init/ssh.conf that sshd is designed to start on filesystemstop on runlevel SI understand that runlevel S is single user.Which says to me that sshd is not stopped on shutdown (runlevel 0).Also, sshd is in /usr/sbin/sshd and furthermoresudo lsof -p <sshd_pid>shows that it uses lib files in /usr/lib.So, my question is, if sshd is not stopped on shutdown YET sshd uses files in /usr, then how can/etc/rc0.d/S40umountfsever successfully umount /usr during shutdown when /usr is on its own partition? sshd should still be using the files, meaning the file system is busy. right?Yet, I'm pretty sure that my shutdowns used to complete successfully. (Edit : I guess they didn't - see next post)
View 2 Replies
View Related
Dec 10, 2010
I'm running Ubuntu 10.10. I recently installed the open ssh server so that can sftp stuff. However, I do not want the server to always be on, only when I manually start So, I did an 'update-rc.d -f ssh remove'and now I don't see any startup scripts in the rcx.d directories any more.However, when I do a 'ps ax', there is always a '/usr/sbin/sshd' process running. I try to kill it but it keeps restarting under a different process ID.How do I disable sshd?
View 3 Replies
View Related
Dec 27, 2010
Not sure if this belongs here or in the upgrade forum but since the upgrade went OK I figured I would post this here. I come from a RedHat background and am not too familiar with the Ubuntu/Debian way of dealing with service startup so this may be simple. I was running 10.04 LTS on a Sony Vaio and did a distribution upgrade to 10.10. When running 10.04 LTS the sshd daemon started on boot and I was able to ssh into the PC. Now that did the update I can start the daemon using the command "sudo /etc/init.d/ssh start" but it doesn't start when the systems boots.
I even tried creating the entries in the /etc/rc.#.d directories like this:
/etc/rc0.d/K20ssh -> ../init.d/ssh
/etc/rc1.d/K20ssh -> ../init.d/ssh
[code]....
View 5 Replies
View Related
May 19, 2011
Somehow the -D option got tacked on to my sshd when I start up. How do I remove the -D option when sshd is started at boot? I'm guessing I need to edit something in /etc/init.d but not sure what. I checked System->Preferences->Startup Applications and the ssh server daemon isn't listed there. And since it is a command line option /etc/ssh/sshd_config is of no help.
View 2 Replies
View Related
May 30, 2010
I tried recompiling a new kernel yesterday (2.6.34) on my debian sarge box, but I ran into multiple difficulties. These difficulties forced me to do a double dist-upgrade to lenny. The new kernel was (seemingly) compiled without any hiccups, and I ran dpkg -i on both the image and the header debs. They didn't install properly into grub, but I think I managed to fix that manually.Next thing I did was rebooting the server. It refused to come back up. Luckily my ISP has recovery tools, so I managed to switch back to the old kernel. It boots just fine with that kernel, but the problem is that there is no ssh daemon running! I can access it through ftp and do limited jobs through php, but nothing big, as I have no root access.Now, enough backstory. My question is: How can I install openssh-server onto the server remotely? I cannot access the server personally, as the server is in a completely different country.
View 14 Replies
View Related
Jan 15, 2010
I'm running Ubuntu 9.10 (I installed server then installed the desktop packages) I have tried "sudo update-rc.d -f gdm remove" I have also tried creating an inittab file in /etc with the line id:3:initdefault
View 7 Replies
View Related
Feb 9, 2010
I have just installed the ssh server package for Ubuntu. How can I stop it from running at system startup?
View 3 Replies
View Related
Apr 5, 2010
Ubuntu 9.10
Acer 7736
This machine has a combined key/indicator light to turn the wireless networking on/off The change of state of the switch is detected by software with the switch off iwconfig shows
[Code]...
View 2 Replies
View Related
Jul 4, 2010
xubuntu 8.04 on inspiron 8100
Applications>Settings>Settings Manager>Autostarted apps Update notifier is unchecked
There does not seem to be any Preferences in Update Manager to tweak either.
Is there some file I can edit with nano? Or maybe there's a script I can rename to not run it at startup?
View 6 Replies
View Related
Feb 4, 2011
I am fairly used to Ubuntu, and i decided to try and change my login background (10.10) using the code:
sudo cp /usr/share/applications/gnome-appearance-properties.desktop /usr/share/gdm/autostart/loginwindow,
and:
sudo unlink /usr/share/gdm/autostart/loginwindow/gdm-simple-greeter.desktop
i later realized what i did and i tried to unlink the gnome-appearance-properties.desktop but no luck.
is there any way to stop the appearance properties from popping up at login, and to reinstall the gdm-simple-greeter.desktop ?
View 6 Replies
View Related
Feb 12, 2010
Two weeks ago my computer started freezing on start up when plugged in. It was suggested to upgrade the APM. What is this and is it not updated through the package update? If not how do I upgrade it?
View 1 Replies
View Related
Aug 6, 2010
It is my first time to install fedora 13 and touch linux system.
I burn the DVD edition to install offline. The installation completed and rebooted the system. However, the process stop at the startup screen. And I press escape and find that the process stops at following line: Starting Avahi daemon ...
I don't konw what this line means and how I can deal with.
My computer specification:
CPU P4 2.66GHz
RAM 512M DDR400
Motherboard GA-8IPE775-G
Display Geforce 6200
View 3 Replies
View Related
Apr 29, 2011
I was messing around with my newly installed Archlinux, in a virtual machine (thankfully not my main computer) and now I cannot boot up. The issue is, I read that I could add commands in the rc.local file so that they would be automatically executed after booting up... so, I added the "pacman -Syu" command there, but it usually asks for a confirmation to continue, and that's why I think it is getting stuck there (it gets stuck just after running the daemons).
So, is there a way to stop the rc.local file to be loaded at startup?
View 2 Replies
View Related
Aug 17, 2009
I have installed Oracle 11g on 5.3. Now, I am trying to START and STOP oracle automatically on system startup and shutdown. I am following this link To have this effect, I have created /etc/init.d/dbora
Code:
#!/bin/sh
# chkconfig: 345 99 10
ORA_HOME=/oracle/app/oracle/product/11.1.0/db_1
[code]....
View 4 Replies
View Related
Jun 16, 2010
I have startup scriptsI want to test themI need a script to do the followingstart restart stop for 100 times (or i can set how many cycle)
View 1 Replies
View Related
Jun 25, 2010
The system in question is using Mint 9, but the forums there aren't as active and since its Ubuntu based I didn't think it would be a concern bringing my problem here. If this is an issue, apologies, lock the thread and I'll head over to the Mint forums.So I have an SSH server running on the system, but I only like to have it running at certain times, so I removed it from the rc scripts using the command: sudo update-rc.d -f ssh remove.
Anyway, later I found that SSH was turning on at boot time anyway. I checked the rc scripts manually and couldn't find reference to it. I then tried to stop the process using the command: sudo /etc/init.d/ssh stop which reported that it was working, but after checking the processes and consulting syslog I found that it was re-spawning after I had told it to stop.I found 2 ways to stop the process without it re-spawning:sudo initctl stop sshand sudo service ssh stopSo whilst I can turn it off at each boot, or script it to shutdown at login, I'm still wondering why update-rc.d isn't working
View 3 Replies
View Related
Jul 1, 2010
I have latest openssh-server. you know the classic star/stop scripts:
sudo /etc/init.d/ssh start/stop
But when I wrote this stop command, everything looks good, except sshd was still running. I looked into script it uses start-stop-deaemon to kill through pid. The script always kills process, but immediately, new process of sshd was emerged (by it self - with new process ID)! I don't get it. I'm sick of my not understanding of the proglem! The new process of sshd has parent with id 1 (init). How is this possible? How does it come, that ssh can not be turn off and nobody has noticed or complain about it?
After 2 hours of googling I managed to find this command:
sudo service ssh stop
and ssh finally got killed. Yeahh! After issuing this command /etc/init.d/ssh start/stop work correctly. But only to restart of system. Is this some king of super-uber command and we should not user /etc/init.d/ scripts anymore?
The strange thing is, ssh is run by itself after system start-up (without being in /etc/rc...).
View 2 Replies
View Related
Oct 14, 2010
I have just built my first ever Linux desktop, using VM Ware and it is running Ubuntu 10.10. I wish to try and use SSH to contact the machine but I don't believe the SSHD is running.
I have done a grep for SSHD shows nothing and have checked the Synaptic Package Manager and can see an openssh-client version 1:5.5.p1-4ubuntu is currently installed.
On Solaris, you can start SSH by typing /etc/init.d/ssh start but when checking /etc/init.d on Linux, there is nothing in there called SSH so am unable to restart it.
I just want to have the SSH running on the machine.
View 3 Replies
View Related
Jan 6, 2010
I've started to get segfaults in sshd when trying to connect. There has been no reboot and (until I restarted the sshd to try to fix the problem) there was still another ssh session connected.
The log messages:
Code:
==> kern.log <==
Jan 6 21:33:38 shuttle kernel: [ 1928.611128] sshd[9548]: segfault at bf30e534 eip b7f51b4c esp bf30e510 error 6
==> auth.log <==
[Code]....
View 1 Replies
View Related
Aug 25, 2010
At first I thought that the following command will restart my sshd server:
/etc/init.d/sshd restart
but there is no "sshd" server in this directory.
How else do I (re)start the ssh server? How can I get the version/release number of the sshd server? Where (in which directory) should I put SSH keys?
View 1 Replies
View Related
Mar 13, 2011
I have been trying for weeks to solve this one and have researched everywhere I know to look. Nothing has helped. I am trying to ssh to my other machine (machine1=galla, machine2=cachin). Both run Maverick Meerkat 10.10. I get the following error when trying to ssh to galla:ssh: connect to host galla port 22: Connection refused
uname -a outputs:Linux galla 2.6.35-27-generic #48-Ubuntu SMP Tue Feb 22 20:25:46 UTC 2011 x86_64 GNU/LinuxAlso, sshd does not stay running. I can start it, but a ps tells me it is never running. I imagine herein lies the problem. But why won't it stay running?I am not running any firewall on galla (iptables -L told me that).P.S. I can sucessfully ssh out of galla to cachin. And, even if I just try to ssh localhost on galla, same thing happens.
View 9 Replies
View Related
Jan 19, 2011
I can't ssh into my Dad's machine. He can ssh in from another computer on his network, but I can't get in across the internet. I thought we had port forwarding set up correctly on his router. (Westell 327W running verizon software - sshd application, port 22 to port 22, tcp).
I can exchange keys with his server but I get. "Permission denied, please try again" when I try and login. An nmap scan (with -PN option) on his IP shows the open port.
PORT STATE SERVICE
22/tcp open ssh
View 8 Replies
View Related
Feb 22, 2011
I've got Fedora 14 running on an EBS volume on Amazon EC2. I've created a few users and enabled port 22. When I set a password for these users, they can successfully ssh into the instance; even if they logout and login again....until:
If I reboot the machine, they can no longer ssh into the machine (permission denied). If I issue the passwd <user> command and change their passwords, they can login again....until I reboot the machine at which time they cannot login again until I change their passwords. The problem exists even from the machine. That is, if root attempts to ssh into 127.0.0.1 using their username/password, the same problem/resolution exists.
View 2 Replies
View Related
Jan 22, 2011
How do I get SSHD to log EVERYTHING to it's own log file? I tried this in sshd_conf:
SyslogFacility SSHDLOG
LogLevel DEBUG
View 3 Replies
View Related
Jan 18, 2010
I'm having troubles trying to understand this problem:my homeserver until yesterday had a public IP, staying on network, with sshd running and all was fine;this evening I changed the IP, giving it a local lan address, and what happened if I tried to connect to it by ssh?I got an error about "Connection closed by remote host". Google helped me finding that was regarded to hosts.deny file, that was actually containing a lineALL:ALLthat I commented, and all was fine.My question is: why the hosts.deny (that has never changed) was observed only with the local IP?I tried to switch back to the public IP and leaving ALL:ALL, and it did connect without any problem
View 1 Replies
View Related
Jun 13, 2010
Updated two SSH packages today and now SSHd wont start. Worked fine an hour ago, and I'm still logged onto the server via pre-existing SSH sessions, but now I obviously cannot start new ones.
Code:
paine@pandora:~$ sudo /etc/init.d/ssh start
* /dev/null is not a character device!
paine@pandora:~$
View 9 Replies
View Related
Feb 9, 2011
What is happening when I log in to my Ubuntu server machine via ssh and putty. trying to understand everything, primarily securing my server.
I have specified the ssh server to listen on port 5525, and can login without a problem.
When I look at the logs though it says I connected from xxx.xx.xx.xx on port 53602.
What is happening here and why is the logged connection a different port to the one specified in the config file?
View 1 Replies
View Related
Jun 11, 2011
I've been using ssh for a LONG time to connect my laptop to my desktop with no problems. I use a non-standard port (nnnnn) and keys. After a power outage that caused a shutdown and reboot, I can no longer ssh into the desktop. The only changes I've made are updates (laptop and desktop both running ubuntu 10.04).
$ ssh -p nnnnn Desktop
ssh: connect to host Desktop port nnnnn: Connection refused
No messages are generated in any of the logs on Desktop!
$ /usr/sbin/sshd -T
port nnnnn
protocol 2
addressfamily any
listenaddress 0.0.0.0:12023
listenaddress [::]:12023 .....
View 9 Replies
View Related
May 17, 2011
How to separate sftp and ssh and run on different ports.
i.e.
a) sftp on port x
b) ssh on port 22
I searched from the web and there are no detailed instructions. They suggested something like separating sshd_config into two files (file A and file B) and run two instances. Each instance points to its configuration file.
However, they didnt write down the detailed procedure of:
a) how to modify file A and file B (i.e. which line should insert specific commands)?
b) how to run two instances?
c) how to point each instance to its config file.
I am using Linux CentOS and the latest open-ssh.
View 4 Replies
View Related