VNC via SSH stopped workingvnc over ssh port assignmentvnc connection working with PuTTY but not with command...
Is there a historical explanation as to why the USA people are so litigious compared to France?
Simple way to make circular arrow arc?
Extra battery in the gap of an HDD
How to give a rationality-inducing drug to an entire software company?
'Pound' meaning in this context
Paper status "Accept with Shepherd". What does it really mean?
Marxist and post modernism contradiction
Exists infinitely many as a numerical-quantifier
How do I find files with no group permissions?
How to say dandruff in Esperanto?
My Villain scrys on the party, but I forgot about the sensor!
How to duplicate in 2 x A5 a text written in A4 format on several page?
Novel set in the future, children cannot change the class they are born into, one class is made uneducated by associating books with pain
Open Loop gain of an Op-Amp
How is Smough's name pronounced?
How does Firefox know my ISP login page?
Does an excessive table violate normalization rules?
What is the German word for: "It only works when I try to show you how it does not work"?
What is this game with a red cricket pushing a ball?
Is there a push, in the United States, to use gender-neutral language and gender pronouns (when they are given)?
How can a "proper" function have a vertical slope?
MSSNG VWLS CNNCT WLL
"Table" method for expanding brackets vs "each term in the first bracket gets multiplied by each term in the second bracket"
SSD or HDD for server
VNC via SSH stopped working
vnc over ssh port assignmentvnc connection working with PuTTY but not with command lineinitiate ssh connection from server to clientVNC & SSH : local (win-putty) -> hop (linux) -> remote (linux)ssh connection refused from same PC when going outside local networkSSH Tunneling to VNCServerSSH Configuration Help / Can't tunnelUnable to Connect to VNC Server Using SSH Tunnel
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}
Any idea why VNC stopped working after setting up SSH for authenticating with keys only? (No password)
I use Debian 10 and tightvnc server with tigervnc client. It has worked nicely until now.
Here's what I get when trying to establish the SSH tunnel:
ssh -L 5901:localhost:5901 user@pokip.se
bind [127.0.0.1]:5901: Address already in use
channel_setup_fwd_listener_tcpip: cannot listen to port: 5901
Could not request local forwarding.
I find this in the log after attempting to connect with TigerVNC Client:
/var/log/auth.log
Oct 7 06:24:17 pokip sshd[4686]: error: connect_to localhost port 5901: failed.
channel 3: open failed: connect failed: Connection refused
Another thing I did before it stopped working was to create a pair of keys on my wifes computer and VNC into the server from there to my usual sudo account on the server. Worked! Then I went back to my own computer and could not do VNC from there anymore. I can still SSH in with keys though.
ssh tightvnc
add a comment
|
Any idea why VNC stopped working after setting up SSH for authenticating with keys only? (No password)
I use Debian 10 and tightvnc server with tigervnc client. It has worked nicely until now.
Here's what I get when trying to establish the SSH tunnel:
ssh -L 5901:localhost:5901 user@pokip.se
bind [127.0.0.1]:5901: Address already in use
channel_setup_fwd_listener_tcpip: cannot listen to port: 5901
Could not request local forwarding.
I find this in the log after attempting to connect with TigerVNC Client:
/var/log/auth.log
Oct 7 06:24:17 pokip sshd[4686]: error: connect_to localhost port 5901: failed.
channel 3: open failed: connect failed: Connection refused
Another thing I did before it stopped working was to create a pair of keys on my wifes computer and VNC into the server from there to my usual sudo account on the server. Worked! Then I went back to my own computer and could not do VNC from there anymore. I can still SSH in with keys though.
ssh tightvnc
The message "Address already in use" says that there is already something listening on that port (5901) in your case. Try to figure out which program that is or us another port ie. 5910:localhost:5901 if VNC is listening on 5901.
– Lambert
16 mins ago
Restarted vncserver, but it still says 'already in use. Now I noticed that VNC works if I connect without SSH. Serveradress:5901 port works, just not with SSH for some reason?
– Rimfire
7 mins ago
add a comment
|
Any idea why VNC stopped working after setting up SSH for authenticating with keys only? (No password)
I use Debian 10 and tightvnc server with tigervnc client. It has worked nicely until now.
Here's what I get when trying to establish the SSH tunnel:
ssh -L 5901:localhost:5901 user@pokip.se
bind [127.0.0.1]:5901: Address already in use
channel_setup_fwd_listener_tcpip: cannot listen to port: 5901
Could not request local forwarding.
I find this in the log after attempting to connect with TigerVNC Client:
/var/log/auth.log
Oct 7 06:24:17 pokip sshd[4686]: error: connect_to localhost port 5901: failed.
channel 3: open failed: connect failed: Connection refused
Another thing I did before it stopped working was to create a pair of keys on my wifes computer and VNC into the server from there to my usual sudo account on the server. Worked! Then I went back to my own computer and could not do VNC from there anymore. I can still SSH in with keys though.
ssh tightvnc
Any idea why VNC stopped working after setting up SSH for authenticating with keys only? (No password)
I use Debian 10 and tightvnc server with tigervnc client. It has worked nicely until now.
Here's what I get when trying to establish the SSH tunnel:
ssh -L 5901:localhost:5901 user@pokip.se
bind [127.0.0.1]:5901: Address already in use
channel_setup_fwd_listener_tcpip: cannot listen to port: 5901
Could not request local forwarding.
I find this in the log after attempting to connect with TigerVNC Client:
/var/log/auth.log
Oct 7 06:24:17 pokip sshd[4686]: error: connect_to localhost port 5901: failed.
channel 3: open failed: connect failed: Connection refused
Another thing I did before it stopped working was to create a pair of keys on my wifes computer and VNC into the server from there to my usual sudo account on the server. Worked! Then I went back to my own computer and could not do VNC from there anymore. I can still SSH in with keys though.
ssh tightvnc
ssh tightvnc
asked 27 mins ago
RimfireRimfire
101 silver badge5 bronze badges
101 silver badge5 bronze badges
The message "Address already in use" says that there is already something listening on that port (5901) in your case. Try to figure out which program that is or us another port ie. 5910:localhost:5901 if VNC is listening on 5901.
– Lambert
16 mins ago
Restarted vncserver, but it still says 'already in use. Now I noticed that VNC works if I connect without SSH. Serveradress:5901 port works, just not with SSH for some reason?
– Rimfire
7 mins ago
add a comment
|
The message "Address already in use" says that there is already something listening on that port (5901) in your case. Try to figure out which program that is or us another port ie. 5910:localhost:5901 if VNC is listening on 5901.
– Lambert
16 mins ago
Restarted vncserver, but it still says 'already in use. Now I noticed that VNC works if I connect without SSH. Serveradress:5901 port works, just not with SSH for some reason?
– Rimfire
7 mins ago
The message "Address already in use" says that there is already something listening on that port (5901) in your case. Try to figure out which program that is or us another port ie. 5910:localhost:5901 if VNC is listening on 5901.
– Lambert
16 mins ago
The message "Address already in use" says that there is already something listening on that port (5901) in your case. Try to figure out which program that is or us another port ie. 5910:localhost:5901 if VNC is listening on 5901.
– Lambert
16 mins ago
Restarted vncserver, but it still says 'already in use. Now I noticed that VNC works if I connect without SSH. Serveradress:5901 port works, just not with SSH for some reason?
– Rimfire
7 mins ago
Restarted vncserver, but it still says 'already in use. Now I noticed that VNC works if I connect without SSH. Serveradress:5901 port works, just not with SSH for some reason?
– Rimfire
7 mins ago
add a comment
|
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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/4.0/"u003ecc by-sa 4.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%2funix.stackexchange.com%2fquestions%2f545453%2fvnc-via-ssh-stopped-working%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f545453%2fvnc-via-ssh-stopped-working%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
The message "Address already in use" says that there is already something listening on that port (5901) in your case. Try to figure out which program that is or us another port ie. 5910:localhost:5901 if VNC is listening on 5901.
– Lambert
16 mins ago
Restarted vncserver, but it still says 'already in use. Now I noticed that VNC works if I connect without SSH. Serveradress:5901 port works, just not with SSH for some reason?
– Rimfire
7 mins ago