[SOLVED] Cannot start novnc console on other machines in a Proxmox Cluster: Unsupported server

djacob

New Member
Oct 24, 2017
3
0
1
38
Hi all,

I recently installed Proxmox 5.0-30 on two machines and created a cluster. Everything worked nicely.

After this was done, I changed the sshd port to 566 on both servers and the novnc console access stopped working when trying to access consoles on the other Proxmox server i.e. when logged into server-1 we could access consoles of VMs running on server-1 but not on server-2.

Following advice in this thread I added an ssh config file in /root/.ssh/config with the following config:
Code:
Host *
  Port 566
deleted the known_hosts file, restarted ssh.service, manually ssh'd to the other server and accepted the new fingerprint. I did this on both servers.

Now I can ssh from one server to the other, without having to type yes or anything, using IP address or hostname of the other server. Just a simple:
Code:
ssh 10.1.10.2

However novnc still does not work. When I try to view a console of a VM on the other machine, the novnc screen shows a 'Unsupported server' error message and no console appears (I attached a screenshot). However in the 'Tasks' log down the bottom the 'Console' tasks has an 'OK' status message.

I don't see anything particularly helpful in the system logs.

Does anyone have any insight on how I can fix the remote console while keeping my non-standard sshd port?
 

Attachments

  • novnc-unsupported-server.png
    novnc-unsupported-server.png
    20.3 KB · Views: 11
can you post the sshd and ssh config ? (minus any private parts of course)
 
Hi dcsapak,

thanks for the quick reply! Here's the output, stripped of commented out lines and empty lines.

ssh_config:
Code:
   PasswordAuthentication yes
   PubkeyAuthentication yes
   IdentityFile ~/.ssh/id_rsa
   IdentityFile ~/.ssh/id_dsa
   Protocol 2
   HashKnownHosts no
   GlobalKnownHostsFile /etc/ssh/ssh_known_hosts
Host *
  GSSAPIAuthentication yes
  ForwardX11Trusted yes
  UseRoaming no
  SendEnv LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
  SendEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
  SendEnv LC_IDENTIFICATION LC_ALL

sshd_config:
Code:
Port 566
Protocol 2
AddressFamily any
HostKey /etc/ssh/ssh_host_rsa_key
ServerKeyBits 1024
SyslogFacility AUTH
LogLevel INFO
LoginGraceTime 120
PermitRootLogin without-password
PubkeyAuthentication yes
HostbasedAuthentication no
IgnoreUserKnownHosts no
IgnoreRhosts yes
PasswordAuthentication yes
ChallengeResponseAuthentication yes
GSSAPIAuthentication yes
GSSAPICleanupCredentials yes
UsePAM yes
AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
AcceptEnv LC_IDENTIFICATION LC_ALL
AllowTcpForwarding yes
X11Forwarding yes
X11UseLocalhost yes
PrintMotd yes
TCPKeepAlive yes
ClientAliveInterval 0
ClientAliveCountMax 3
UseDNS yes
PermitTunnel no
Banner none
XAuthLocation /usr/bin/xauth
Subsystem sftp /usr/lib/openssh/sftp-server
KexAlgorithms ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1

I should also point out that ssh is managed by Puppet on these machines. In case that matters. :)
 
ok i see why it is not working,
we use an environment variable (LC_PVE_TICKET) for the vnc ticket

so you could add a
Code:
SendEnv LC_PVE_*
in your ssh configs

and a
Code:
AcceptEnv LC_PVE_*
in your sshd configs

this should things get working
 
I added both parameters you suggested, restarted ssh and sshd and it worked! Thank you for the help. :)
 
Hello I have the same problem and here are the lines in ssh_config
SendEnv LANG LC_*
and sshd_config
AcceptEnv LANG LC_*
 
ok i see why it is not working,
we use an environment variable (LC_PVE_TICKET) for the vnc ticket

so you could add a
Code:
SendEnv LC_PVE_*
in your ssh configs

and a
Code:
AcceptEnv LC_PVE_*
in your sshd configs

this should things get working

Hello I have the same problem and here are the lines in ssh_config
SendEnv LANG LC_*
and sshd_config
AcceptEnv LANG LC_*
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!