LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Debian 6 Remote Desktop (https://www.linuxquestions.org/questions/linux-newbie-8/debian-6-remote-desktop-4175468604/)

ceantuco 07-05-2013 11:50 AM

Debian 6 Remote Desktop
 
Hi guys,

I have a Debian server that I use for file storage and backups. I configured Remote Desktop to administer the machine but the problem is that every time the server reboots (for updates or power outage), I can't connect to the machine remotely. I have to go in front of the machine, connect a keyboard and log in to be able to log in remotely. is there a way to setup Debian so if the server reboots I could log in remotely to it? I have SSH enabled too.
Thanks

sharadchhetri 07-05-2013 01:11 PM

If you are able to ssh you can start the service remotely also. What package have you installed for Remote Desktop.

ceantuco 07-05-2013 01:27 PM

Hi Sharad,

I did not install any packages. I went to System/Preferences/Remote Desktop and configured it there. What command can I run to know which package is being used? Also, what command can I run to start the service through SSH?
Thanks!

metalaarif 07-06-2013 04:30 PM

Hi there,

I am assuming that your using GUI tools rather than command-line. It seems that your running your ssh but its not starting automatically and then when it reboots it disables.

Open your terminal or Konsole whatever you prefer and then type in the commands:

Quote:

$ sudo /etc/init.d/sshd start
$ sudo update-rc.d ssh defaults
(this should do the trick and do reboot and check if its working.)

Type following command to see what services or daemons are running on your server so that you can confirm yourself.

Quote:

$ sudo netstat -tlp
FYI, if you use RedHat or CentOS
be root
Quote:

# chkconfig sshd on

and do check this link as well http://www.linuxquestions.org/questi...t-time-865692/

ceantuco 07-08-2013 11:18 AM

Hi metalaarif. I think you misunderstood me. My SSH server works perfectly fine. The problem is my REMOTE DESKTOP service. I don't know if it does not start after I reboot the server but I need to login locally so I can login remotely. I said that I have ssh so maybe you can tell me how to start the REMOTE DESKTOP service remotely so then I can login.
Thanks


All times are GMT -5. The time now is 12:42 AM.