How to reboot Ubuntu from Android using SSH?
I use SSH to access Ubuntu 18.10 from my Android phone. (I don't think it is important but I do that through a plugin in AIO Launcher.)
The SSH connection works, I am able to turn off/on the volume by amixer -q -D pulse sset Master toggle
.
But I need to be able to reboot/shut down the computer using my phone and this does not work.
I tested that typing systemctl reboot
to the command line of my Ubuntu PC reboots the computer (no need to type "sudo"). But typing the same to my phone does nothing. I believe that this is the expected behaviour as I am expected to have superadmin privilegs to restart the computer by SSH. But unfortunately, typing sudo systemctl reboot
does also nothing (I expected to be asked for my password but it is not the case).
The journal says this about it:
Accepted password for ### from ### by (uid=0)
New session 16 of user ###.
Started Session 16 of user ###.
pam_unix(sudo:auth): conversation failed
pam_unix(sudo:auth): auth could not identify password for [###]
pam_unix(sshd:session): session closed for user ###
Removed session 16.
ssh
|
show 9 more comments
I use SSH to access Ubuntu 18.10 from my Android phone. (I don't think it is important but I do that through a plugin in AIO Launcher.)
The SSH connection works, I am able to turn off/on the volume by amixer -q -D pulse sset Master toggle
.
But I need to be able to reboot/shut down the computer using my phone and this does not work.
I tested that typing systemctl reboot
to the command line of my Ubuntu PC reboots the computer (no need to type "sudo"). But typing the same to my phone does nothing. I believe that this is the expected behaviour as I am expected to have superadmin privilegs to restart the computer by SSH. But unfortunately, typing sudo systemctl reboot
does also nothing (I expected to be asked for my password but it is not the case).
The journal says this about it:
Accepted password for ### from ### by (uid=0)
New session 16 of user ###.
Started Session 16 of user ###.
pam_unix(sudo:auth): conversation failed
pam_unix(sudo:auth): auth could not identify password for [###]
pam_unix(sshd:session): session closed for user ###
Removed session 16.
ssh
I find it hard to believe it does "nothing" maybe just not what you're expecting. Are there any errors? What does the journal have to say about this?
– j-money
Jan 29 at 13:18
Nothing at all. But this may be caused by the AIO launcher. (This is the first time I am experimenting with SSH so please be patient.) When I tried turning off the volume for the first time, I forgot to previously install openssh-server to my PC. Then I recieved an error message on my phone which was very long but said something like "connection error". But now openssh-server is installed, turning off the volume via SSH works, but both "sudo systemctl reboot" and "systemctl reboot" do nothing, no error message at all.
– JDoeU55
Jan 29 at 13:26
What does the journal have to say about this?
– j-money
Jan 29 at 13:32
1
Try a differentssh
client app in your phone. There are several. I useJuiceSSH
for Android. I can shutdown or reboot the remote computer from my phone without any problem.
– user68186
Jan 29 at 15:20
1
ConnectBot is my favorite SSH client for Android.
– pa4080
Jan 29 at 20:49
|
show 9 more comments
I use SSH to access Ubuntu 18.10 from my Android phone. (I don't think it is important but I do that through a plugin in AIO Launcher.)
The SSH connection works, I am able to turn off/on the volume by amixer -q -D pulse sset Master toggle
.
But I need to be able to reboot/shut down the computer using my phone and this does not work.
I tested that typing systemctl reboot
to the command line of my Ubuntu PC reboots the computer (no need to type "sudo"). But typing the same to my phone does nothing. I believe that this is the expected behaviour as I am expected to have superadmin privilegs to restart the computer by SSH. But unfortunately, typing sudo systemctl reboot
does also nothing (I expected to be asked for my password but it is not the case).
The journal says this about it:
Accepted password for ### from ### by (uid=0)
New session 16 of user ###.
Started Session 16 of user ###.
pam_unix(sudo:auth): conversation failed
pam_unix(sudo:auth): auth could not identify password for [###]
pam_unix(sshd:session): session closed for user ###
Removed session 16.
ssh
I use SSH to access Ubuntu 18.10 from my Android phone. (I don't think it is important but I do that through a plugin in AIO Launcher.)
The SSH connection works, I am able to turn off/on the volume by amixer -q -D pulse sset Master toggle
.
But I need to be able to reboot/shut down the computer using my phone and this does not work.
I tested that typing systemctl reboot
to the command line of my Ubuntu PC reboots the computer (no need to type "sudo"). But typing the same to my phone does nothing. I believe that this is the expected behaviour as I am expected to have superadmin privilegs to restart the computer by SSH. But unfortunately, typing sudo systemctl reboot
does also nothing (I expected to be asked for my password but it is not the case).
The journal says this about it:
Accepted password for ### from ### by (uid=0)
New session 16 of user ###.
Started Session 16 of user ###.
pam_unix(sudo:auth): conversation failed
pam_unix(sudo:auth): auth could not identify password for [###]
pam_unix(sshd:session): session closed for user ###
Removed session 16.
ssh
ssh
edited Jan 29 at 19:41
Kevin Bowen
14.7k155970
14.7k155970
asked Jan 29 at 13:08
JDoeU55JDoeU55
12
12
I find it hard to believe it does "nothing" maybe just not what you're expecting. Are there any errors? What does the journal have to say about this?
– j-money
Jan 29 at 13:18
Nothing at all. But this may be caused by the AIO launcher. (This is the first time I am experimenting with SSH so please be patient.) When I tried turning off the volume for the first time, I forgot to previously install openssh-server to my PC. Then I recieved an error message on my phone which was very long but said something like "connection error". But now openssh-server is installed, turning off the volume via SSH works, but both "sudo systemctl reboot" and "systemctl reboot" do nothing, no error message at all.
– JDoeU55
Jan 29 at 13:26
What does the journal have to say about this?
– j-money
Jan 29 at 13:32
1
Try a differentssh
client app in your phone. There are several. I useJuiceSSH
for Android. I can shutdown or reboot the remote computer from my phone without any problem.
– user68186
Jan 29 at 15:20
1
ConnectBot is my favorite SSH client for Android.
– pa4080
Jan 29 at 20:49
|
show 9 more comments
I find it hard to believe it does "nothing" maybe just not what you're expecting. Are there any errors? What does the journal have to say about this?
– j-money
Jan 29 at 13:18
Nothing at all. But this may be caused by the AIO launcher. (This is the first time I am experimenting with SSH so please be patient.) When I tried turning off the volume for the first time, I forgot to previously install openssh-server to my PC. Then I recieved an error message on my phone which was very long but said something like "connection error". But now openssh-server is installed, turning off the volume via SSH works, but both "sudo systemctl reboot" and "systemctl reboot" do nothing, no error message at all.
– JDoeU55
Jan 29 at 13:26
What does the journal have to say about this?
– j-money
Jan 29 at 13:32
1
Try a differentssh
client app in your phone. There are several. I useJuiceSSH
for Android. I can shutdown or reboot the remote computer from my phone without any problem.
– user68186
Jan 29 at 15:20
1
ConnectBot is my favorite SSH client for Android.
– pa4080
Jan 29 at 20:49
I find it hard to believe it does "nothing" maybe just not what you're expecting. Are there any errors? What does the journal have to say about this?
– j-money
Jan 29 at 13:18
I find it hard to believe it does "nothing" maybe just not what you're expecting. Are there any errors? What does the journal have to say about this?
– j-money
Jan 29 at 13:18
Nothing at all. But this may be caused by the AIO launcher. (This is the first time I am experimenting with SSH so please be patient.) When I tried turning off the volume for the first time, I forgot to previously install openssh-server to my PC. Then I recieved an error message on my phone which was very long but said something like "connection error". But now openssh-server is installed, turning off the volume via SSH works, but both "sudo systemctl reboot" and "systemctl reboot" do nothing, no error message at all.
– JDoeU55
Jan 29 at 13:26
Nothing at all. But this may be caused by the AIO launcher. (This is the first time I am experimenting with SSH so please be patient.) When I tried turning off the volume for the first time, I forgot to previously install openssh-server to my PC. Then I recieved an error message on my phone which was very long but said something like "connection error". But now openssh-server is installed, turning off the volume via SSH works, but both "sudo systemctl reboot" and "systemctl reboot" do nothing, no error message at all.
– JDoeU55
Jan 29 at 13:26
What does the journal have to say about this?
– j-money
Jan 29 at 13:32
What does the journal have to say about this?
– j-money
Jan 29 at 13:32
1
1
Try a different
ssh
client app in your phone. There are several. I use JuiceSSH
for Android. I can shutdown or reboot the remote computer from my phone without any problem.– user68186
Jan 29 at 15:20
Try a different
ssh
client app in your phone. There are several. I use JuiceSSH
for Android. I can shutdown or reboot the remote computer from my phone without any problem.– user68186
Jan 29 at 15:20
1
1
ConnectBot is my favorite SSH client for Android.
– pa4080
Jan 29 at 20:49
ConnectBot is my favorite SSH client for Android.
– pa4080
Jan 29 at 20:49
|
show 9 more comments
1 Answer
1
active
oldest
votes
I am using without problems the sudo reboot
and sudo poweroff
commands.
Not working for me.
– JDoeU55
Jan 29 at 14:51
Try to change your SSH client software on Android. I am using VX-Connection Bot.
– kukulo
Jan 29 at 15:11
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1113804%2fhow-to-reboot-ubuntu-from-android-using-ssh%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I am using without problems the sudo reboot
and sudo poweroff
commands.
Not working for me.
– JDoeU55
Jan 29 at 14:51
Try to change your SSH client software on Android. I am using VX-Connection Bot.
– kukulo
Jan 29 at 15:11
add a comment |
I am using without problems the sudo reboot
and sudo poweroff
commands.
Not working for me.
– JDoeU55
Jan 29 at 14:51
Try to change your SSH client software on Android. I am using VX-Connection Bot.
– kukulo
Jan 29 at 15:11
add a comment |
I am using without problems the sudo reboot
and sudo poweroff
commands.
I am using without problems the sudo reboot
and sudo poweroff
commands.
answered Jan 29 at 14:38
kukulokukulo
1,435418
1,435418
Not working for me.
– JDoeU55
Jan 29 at 14:51
Try to change your SSH client software on Android. I am using VX-Connection Bot.
– kukulo
Jan 29 at 15:11
add a comment |
Not working for me.
– JDoeU55
Jan 29 at 14:51
Try to change your SSH client software on Android. I am using VX-Connection Bot.
– kukulo
Jan 29 at 15:11
Not working for me.
– JDoeU55
Jan 29 at 14:51
Not working for me.
– JDoeU55
Jan 29 at 14:51
Try to change your SSH client software on Android. I am using VX-Connection Bot.
– kukulo
Jan 29 at 15:11
Try to change your SSH client software on Android. I am using VX-Connection Bot.
– kukulo
Jan 29 at 15:11
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1113804%2fhow-to-reboot-ubuntu-from-android-using-ssh%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
I find it hard to believe it does "nothing" maybe just not what you're expecting. Are there any errors? What does the journal have to say about this?
– j-money
Jan 29 at 13:18
Nothing at all. But this may be caused by the AIO launcher. (This is the first time I am experimenting with SSH so please be patient.) When I tried turning off the volume for the first time, I forgot to previously install openssh-server to my PC. Then I recieved an error message on my phone which was very long but said something like "connection error". But now openssh-server is installed, turning off the volume via SSH works, but both "sudo systemctl reboot" and "systemctl reboot" do nothing, no error message at all.
– JDoeU55
Jan 29 at 13:26
What does the journal have to say about this?
– j-money
Jan 29 at 13:32
1
Try a different
ssh
client app in your phone. There are several. I useJuiceSSH
for Android. I can shutdown or reboot the remote computer from my phone without any problem.– user68186
Jan 29 at 15:20
1
ConnectBot is my favorite SSH client for Android.
– pa4080
Jan 29 at 20:49