Log into desktop using SSH?












1















A few months ago I converted an old desktop computer into a basic server by putting Ubuntu (desktop version) onto it and setting up apache2, etc. I have SSH configured so that I can work on it remotely, and use FTP to move files. When I tried to access my server yesterday I found that it was down, and I could not get in at all. I'm at college, and my server is at home, so I called my mom, who told me that there had been a brief power outage at my house, and I concluded that my server had restarted. I have the computer set to require a password on startup, so it turns out that it had just been sitting at the log in screen for the past few days, waiting for a password. My instinctive question is whether SSH or some other program can be used to log the system in (as if in person) from a remote computer after the server has been restarted.



As I said, I currently have the computer set to require a password to log into the one and only user account on the server upon startup. When I SSH or FTP, I use the same log in/password, though I'm guessing that I'm going to be told that this is the wrong way to go about doing it, and is the source of my problem. In that case, what would you recommend?



Thanks in advance.





In response to the comment and answer, I don't know what the X environment is, so it's probably not something that I want to log in to. The way I have the server set up, when you physically turn the machine on, it boots up, and then asks for a password, just like most normal computers do. You have to enter the password in order to get to the desktop and run applications. From my experience, the web server application, ssh server application, etc. are not active until the password is entered and the desktop is loaded. Hence, I need to log in to the computer in order for it to come on line as a server. What I need is a way to get the server running again (at desktop, with apache) after the machine loses power and boots back up without having to physically enter a password in person.










share|improve this question

























  • Do you want to login into your computer but to the X environment? You want to login to Gnome or Unity or whatever? Is that it?

    – LnxSlck
    Oct 13 '12 at 17:21











  • You want to have only terminal, or graphic user interface (like Unity, or Gnome)?

    – kubahaha
    Oct 13 '12 at 20:35











  • It doesn't matter to me, as long as it can start apache, and doesn't log out and go off line when I close the client side application. I don't really want to keep peripherals connected, so a GUI wouldn't make a difference as you wouldn't see it. I'm not sure if what I'm saying makes sense.

    – Casey Hungler
    Oct 13 '12 at 22:24
















1















A few months ago I converted an old desktop computer into a basic server by putting Ubuntu (desktop version) onto it and setting up apache2, etc. I have SSH configured so that I can work on it remotely, and use FTP to move files. When I tried to access my server yesterday I found that it was down, and I could not get in at all. I'm at college, and my server is at home, so I called my mom, who told me that there had been a brief power outage at my house, and I concluded that my server had restarted. I have the computer set to require a password on startup, so it turns out that it had just been sitting at the log in screen for the past few days, waiting for a password. My instinctive question is whether SSH or some other program can be used to log the system in (as if in person) from a remote computer after the server has been restarted.



As I said, I currently have the computer set to require a password to log into the one and only user account on the server upon startup. When I SSH or FTP, I use the same log in/password, though I'm guessing that I'm going to be told that this is the wrong way to go about doing it, and is the source of my problem. In that case, what would you recommend?



Thanks in advance.





In response to the comment and answer, I don't know what the X environment is, so it's probably not something that I want to log in to. The way I have the server set up, when you physically turn the machine on, it boots up, and then asks for a password, just like most normal computers do. You have to enter the password in order to get to the desktop and run applications. From my experience, the web server application, ssh server application, etc. are not active until the password is entered and the desktop is loaded. Hence, I need to log in to the computer in order for it to come on line as a server. What I need is a way to get the server running again (at desktop, with apache) after the machine loses power and boots back up without having to physically enter a password in person.










share|improve this question

























  • Do you want to login into your computer but to the X environment? You want to login to Gnome or Unity or whatever? Is that it?

    – LnxSlck
    Oct 13 '12 at 17:21











  • You want to have only terminal, or graphic user interface (like Unity, or Gnome)?

    – kubahaha
    Oct 13 '12 at 20:35











  • It doesn't matter to me, as long as it can start apache, and doesn't log out and go off line when I close the client side application. I don't really want to keep peripherals connected, so a GUI wouldn't make a difference as you wouldn't see it. I'm not sure if what I'm saying makes sense.

    – Casey Hungler
    Oct 13 '12 at 22:24














1












1








1


1






A few months ago I converted an old desktop computer into a basic server by putting Ubuntu (desktop version) onto it and setting up apache2, etc. I have SSH configured so that I can work on it remotely, and use FTP to move files. When I tried to access my server yesterday I found that it was down, and I could not get in at all. I'm at college, and my server is at home, so I called my mom, who told me that there had been a brief power outage at my house, and I concluded that my server had restarted. I have the computer set to require a password on startup, so it turns out that it had just been sitting at the log in screen for the past few days, waiting for a password. My instinctive question is whether SSH or some other program can be used to log the system in (as if in person) from a remote computer after the server has been restarted.



As I said, I currently have the computer set to require a password to log into the one and only user account on the server upon startup. When I SSH or FTP, I use the same log in/password, though I'm guessing that I'm going to be told that this is the wrong way to go about doing it, and is the source of my problem. In that case, what would you recommend?



Thanks in advance.





In response to the comment and answer, I don't know what the X environment is, so it's probably not something that I want to log in to. The way I have the server set up, when you physically turn the machine on, it boots up, and then asks for a password, just like most normal computers do. You have to enter the password in order to get to the desktop and run applications. From my experience, the web server application, ssh server application, etc. are not active until the password is entered and the desktop is loaded. Hence, I need to log in to the computer in order for it to come on line as a server. What I need is a way to get the server running again (at desktop, with apache) after the machine loses power and boots back up without having to physically enter a password in person.










share|improve this question
















A few months ago I converted an old desktop computer into a basic server by putting Ubuntu (desktop version) onto it and setting up apache2, etc. I have SSH configured so that I can work on it remotely, and use FTP to move files. When I tried to access my server yesterday I found that it was down, and I could not get in at all. I'm at college, and my server is at home, so I called my mom, who told me that there had been a brief power outage at my house, and I concluded that my server had restarted. I have the computer set to require a password on startup, so it turns out that it had just been sitting at the log in screen for the past few days, waiting for a password. My instinctive question is whether SSH or some other program can be used to log the system in (as if in person) from a remote computer after the server has been restarted.



As I said, I currently have the computer set to require a password to log into the one and only user account on the server upon startup. When I SSH or FTP, I use the same log in/password, though I'm guessing that I'm going to be told that this is the wrong way to go about doing it, and is the source of my problem. In that case, what would you recommend?



Thanks in advance.





In response to the comment and answer, I don't know what the X environment is, so it's probably not something that I want to log in to. The way I have the server set up, when you physically turn the machine on, it boots up, and then asks for a password, just like most normal computers do. You have to enter the password in order to get to the desktop and run applications. From my experience, the web server application, ssh server application, etc. are not active until the password is entered and the desktop is loaded. Hence, I need to log in to the computer in order for it to come on line as a server. What I need is a way to get the server running again (at desktop, with apache) after the machine loses power and boots back up without having to physically enter a password in person.







ssh login remote






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 13 '12 at 18:37







Casey Hungler

















asked Oct 13 '12 at 15:57









Casey HunglerCasey Hungler

1,33641214




1,33641214













  • Do you want to login into your computer but to the X environment? You want to login to Gnome or Unity or whatever? Is that it?

    – LnxSlck
    Oct 13 '12 at 17:21











  • You want to have only terminal, or graphic user interface (like Unity, or Gnome)?

    – kubahaha
    Oct 13 '12 at 20:35











  • It doesn't matter to me, as long as it can start apache, and doesn't log out and go off line when I close the client side application. I don't really want to keep peripherals connected, so a GUI wouldn't make a difference as you wouldn't see it. I'm not sure if what I'm saying makes sense.

    – Casey Hungler
    Oct 13 '12 at 22:24



















  • Do you want to login into your computer but to the X environment? You want to login to Gnome or Unity or whatever? Is that it?

    – LnxSlck
    Oct 13 '12 at 17:21











  • You want to have only terminal, or graphic user interface (like Unity, or Gnome)?

    – kubahaha
    Oct 13 '12 at 20:35











  • It doesn't matter to me, as long as it can start apache, and doesn't log out and go off line when I close the client side application. I don't really want to keep peripherals connected, so a GUI wouldn't make a difference as you wouldn't see it. I'm not sure if what I'm saying makes sense.

    – Casey Hungler
    Oct 13 '12 at 22:24

















Do you want to login into your computer but to the X environment? You want to login to Gnome or Unity or whatever? Is that it?

– LnxSlck
Oct 13 '12 at 17:21





Do you want to login into your computer but to the X environment? You want to login to Gnome or Unity or whatever? Is that it?

– LnxSlck
Oct 13 '12 at 17:21













You want to have only terminal, or graphic user interface (like Unity, or Gnome)?

– kubahaha
Oct 13 '12 at 20:35





You want to have only terminal, or graphic user interface (like Unity, or Gnome)?

– kubahaha
Oct 13 '12 at 20:35













It doesn't matter to me, as long as it can start apache, and doesn't log out and go off line when I close the client side application. I don't really want to keep peripherals connected, so a GUI wouldn't make a difference as you wouldn't see it. I'm not sure if what I'm saying makes sense.

– Casey Hungler
Oct 13 '12 at 22:24





It doesn't matter to me, as long as it can start apache, and doesn't log out and go off line when I close the client side application. I don't really want to keep peripherals connected, so a GUI wouldn't make a difference as you wouldn't see it. I'm not sure if what I'm saying makes sense.

– Casey Hungler
Oct 13 '12 at 22:24










2 Answers
2






active

oldest

votes


















0














Based on what you said, this sounds like you are using a BIOS boot password vs just the desktop logon password.



Case in point, I have a laptop in my home that is old much like yours, however, the ssh service is fully active and I don't need to log into the remote desktop. Doesn't matter how many users are present on the system. SSH is a service that will run in it's own process separate from the X environment.



My recommendation is that you remove the BIOS boot password and allow your computer to boot normally. That way you can access it remotely regardless of whether you have logged on to it physically.






share|improve this answer































    -1














    Edit: In response to comment, just as an alternative idea... you could create a second very non-privileged user that is allow to auto log on. This would get the needed services running.



    Before I get flamed, yes there is a "potential" security issue in adding an auto log-in user. But not much more than adding an additional user period. Heavily restrict this user's access, give it a solid password, and have the screen auto lock and require a password after a very short time out. Then you should be able to log-in using the original answer.



    -----Original-----



    Use the -X option with the SSH command



    Example $ssh -X 192.168.1.100



    Also check out the man page for SSH to look at more options.



     man ssh





    share|improve this answer

























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "89"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f199727%2flog-into-desktop-using-ssh%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      Based on what you said, this sounds like you are using a BIOS boot password vs just the desktop logon password.



      Case in point, I have a laptop in my home that is old much like yours, however, the ssh service is fully active and I don't need to log into the remote desktop. Doesn't matter how many users are present on the system. SSH is a service that will run in it's own process separate from the X environment.



      My recommendation is that you remove the BIOS boot password and allow your computer to boot normally. That way you can access it remotely regardless of whether you have logged on to it physically.






      share|improve this answer




























        0














        Based on what you said, this sounds like you are using a BIOS boot password vs just the desktop logon password.



        Case in point, I have a laptop in my home that is old much like yours, however, the ssh service is fully active and I don't need to log into the remote desktop. Doesn't matter how many users are present on the system. SSH is a service that will run in it's own process separate from the X environment.



        My recommendation is that you remove the BIOS boot password and allow your computer to boot normally. That way you can access it remotely regardless of whether you have logged on to it physically.






        share|improve this answer


























          0












          0








          0







          Based on what you said, this sounds like you are using a BIOS boot password vs just the desktop logon password.



          Case in point, I have a laptop in my home that is old much like yours, however, the ssh service is fully active and I don't need to log into the remote desktop. Doesn't matter how many users are present on the system. SSH is a service that will run in it's own process separate from the X environment.



          My recommendation is that you remove the BIOS boot password and allow your computer to boot normally. That way you can access it remotely regardless of whether you have logged on to it physically.






          share|improve this answer













          Based on what you said, this sounds like you are using a BIOS boot password vs just the desktop logon password.



          Case in point, I have a laptop in my home that is old much like yours, however, the ssh service is fully active and I don't need to log into the remote desktop. Doesn't matter how many users are present on the system. SSH is a service that will run in it's own process separate from the X environment.



          My recommendation is that you remove the BIOS boot password and allow your computer to boot normally. That way you can access it remotely regardless of whether you have logged on to it physically.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 9 hours ago









          KreezxilKreezxil

          215




          215

























              -1














              Edit: In response to comment, just as an alternative idea... you could create a second very non-privileged user that is allow to auto log on. This would get the needed services running.



              Before I get flamed, yes there is a "potential" security issue in adding an auto log-in user. But not much more than adding an additional user period. Heavily restrict this user's access, give it a solid password, and have the screen auto lock and require a password after a very short time out. Then you should be able to log-in using the original answer.



              -----Original-----



              Use the -X option with the SSH command



              Example $ssh -X 192.168.1.100



              Also check out the man page for SSH to look at more options.



               man ssh





              share|improve this answer






























                -1














                Edit: In response to comment, just as an alternative idea... you could create a second very non-privileged user that is allow to auto log on. This would get the needed services running.



                Before I get flamed, yes there is a "potential" security issue in adding an auto log-in user. But not much more than adding an additional user period. Heavily restrict this user's access, give it a solid password, and have the screen auto lock and require a password after a very short time out. Then you should be able to log-in using the original answer.



                -----Original-----



                Use the -X option with the SSH command



                Example $ssh -X 192.168.1.100



                Also check out the man page for SSH to look at more options.



                 man ssh





                share|improve this answer




























                  -1












                  -1








                  -1







                  Edit: In response to comment, just as an alternative idea... you could create a second very non-privileged user that is allow to auto log on. This would get the needed services running.



                  Before I get flamed, yes there is a "potential" security issue in adding an auto log-in user. But not much more than adding an additional user period. Heavily restrict this user's access, give it a solid password, and have the screen auto lock and require a password after a very short time out. Then you should be able to log-in using the original answer.



                  -----Original-----



                  Use the -X option with the SSH command



                  Example $ssh -X 192.168.1.100



                  Also check out the man page for SSH to look at more options.



                   man ssh





                  share|improve this answer















                  Edit: In response to comment, just as an alternative idea... you could create a second very non-privileged user that is allow to auto log on. This would get the needed services running.



                  Before I get flamed, yes there is a "potential" security issue in adding an auto log-in user. But not much more than adding an additional user period. Heavily restrict this user's access, give it a solid password, and have the screen auto lock and require a password after a very short time out. Then you should be able to log-in using the original answer.



                  -----Original-----



                  Use the -X option with the SSH command



                  Example $ssh -X 192.168.1.100



                  Also check out the man page for SSH to look at more options.



                   man ssh






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Oct 14 '12 at 14:23

























                  answered Oct 13 '12 at 17:26









                  ArgusvisionArgusvision

                  1,43831027




                  1,43831027






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Ask Ubuntu!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f199727%2flog-into-desktop-using-ssh%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Category:香港粉麵

                      List *all* the tuples!

                      Channel [V]