Can't connect to noVNC server - vnc

I have used git to get the noVNC repository from github.
I started server with ./utils/launch.sh --vnc localhost:5901. After that I typed url (received in my console) in browser.
http://user.local:6080/vnc.html?host=user.local&port=6080 (I have replaced actual user name).
But when I visit this url and enter user.local and port 6080 I get:
27: 10.1.0.164: Plain non-SSL (ws://) WebSocket connection
27: 10.1.0.164: Version hybi-13, base64: 'False'
27: 10.1.0.164: Path: '/websockify'
27: connecting to: localhost:5901
27: handler exception: [Errno 61] Connection refused
Should I start something else?

I think you need to generate a certificate for connecting a websocket: https://github.com/kanaka/websockify/wiki/Encrypted-Connections

Related

SSH remote connection to server with vscromium

Hello i like to change to VSCodium with linux but i have a problem, in VSCODE i use remote-ssh and works fine, but this same package in VSCodium doesn't work.
It ask me password and after i have a error:
[20:38:29.280] SSH Resolver called for "ssh-remote+1.1.1.1", attempt 5, (Reconnection)
[20:38:29.281] SSH Resolver called for host: 1.1.1.1
[20:38:29.282] Setting up SSH remote "1.1.1.1"
[20:38:29.283] Acquiring local install lock: /var/folders/bz/gzbhhfv928n_jdqsk23ttycm0000gn/T/vscode-remote-ssh-eb13906b-install.lock
[20:38:29.283] Looking for existing server data file at /Users/XXXXXXXXXX/Library/Application Support/VSCodium/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-eb13906b-cea9d1a4b17966719d8c5f3cdd914480f7cec47c-0.87.2022090715/data.json
[20:38:29.284] Using commit id "cea9d1a4b17966719d8c5f3cdd914480f7cec47c" and quality "stable" for server
[20:38:29.286] Install and start server if needed
[20:38:29.291] askpass server listening on /var/folders/bz/gzbhhfv928n_jdqsk23ttycm0000gn/T/vscode-ssh-askpass-da57138f4d7832fc3734ad7a50dc225ccbef89e5.sock
[20:38:29.291] Spawning local server with {"serverId":5,"ipcHandlePath":"/var/folders/bz/gzbhhfv928n_jdqsk23ttycm0000gn/T/vscode-ssh-askpass-de457e3bd9a608cfdd3faf37d5903491af5d4969.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","52249","-o","ConnectTimeout=15","1.1.1.1"],"serverDataFolderName":".vscodium-server","dataFilePath":"/Users/XXXXXXXXXX/Library/Application Support/VSCodium/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-eb13906b-cea9d1a4b17966719d8c5f3cdd914480f7cec47c-0.87.2022090715/data.json"}
[20:38:29.291] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.DkNdtZMLnV/Listeners","SHELL":"/bin/zsh","DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/XXXXXXXXXX/.vscode-oss/extensions/ms-vscode-remote.remote-ssh-0.87.2022090715/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/Applications/VSCodium.app/Contents/Frameworks/VSCodium Helper.app/Contents/MacOS/VSCodium Helper","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"--ms-enable-electron-run-as-node","VSCODE_SSH_ASKPASS_MAIN":"/Users/XXXXXXXXXX/.vscode-oss/extensions/ms-vscode-remote.remote-ssh-0.87.2022090715/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/bz/gzbhhfv928n_jdqsk23ttycm0000gn/T/vscode-ssh-askpass-da57138f4d7832fc3734ad7a50dc225ccbef89e5.sock"}
[20:38:29.292] Spawned 11544
[20:38:29.437] > local-server-5> Spawned ssh, pid=11548
[20:38:29.440] stderr> OpenSSH_8.6p1, LibreSSL 3.3.6
[20:38:29.490] stderr> ssh: connect to host 1.1.1.1 port 22: Connection refused
[20:38:29.492] > local-server-5> ssh child died, shutting down
[20:38:29.496] Local server exit: 0
[20:38:29.497] Received install output: local-server-5> Spawned ssh, pid=11548
OpenSSH_8.6p1, LibreSSL 3.3.6
ssh: connect to host 1.1.1.1 port 22: Connection refused
local-server-5> ssh child died, shutting down
[20:38:29.497] Failed to parse remote port from server output
[20:38:29.497] Resolver error: Error:
at g.Create (/Users/XXXXXXXXXX/.vscode-oss/extensions/ms-vscode-remote.remote-ssh-0.87.2022090715/out/extension.js:1:583821)
at t.handleInstallOutput (/Users/XXXXXXXXXX/.vscode-oss/extensions/ms-vscode-remote.remote-ssh-0.87.2022090715/out/extension.js:1:582473)
at Object.e [as tryInstallWithLocalServer] (/Users/XXXXXXXXXX/.vscode-oss/extensions/ms-vscode-remote.remote-ssh-0.87.2022090715/out/extension.js:1:622972)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async /Users/XXXXXXXXXX/.vscode-oss/extensions/ms-vscode-remote.remote-ssh-0.87.2022090715/out/extension.js:1:642100
at async t.withShowDetailsEvent (/Users/XXXXXXXXXX/.vscode-oss/extensions/ms-vscode-remote.remote-ssh-0.87.2022090715/out/extension.js:1:645820)
at async /Users/XXXXXXXXXX/.vscode-oss/extensions/ms-vscode-remote.remote-ssh-0.87.2022090715/out/extension.js:1:621444
at async T (/Users/XXXXXXXXXX/.vscode-oss/extensions/ms-vscode-remote.remote-ssh-0.87.2022090715/out/extension.js:1:617950)
at async t.resolveWithLocalServer (/Users/XXXXXXXXXX/.vscode-oss/extensions/ms-vscode-remote.remote-ssh-0.87.2022090715/out/extension.js:1:621059)
at async t.resolve (/Users/XXXXXXXXXX/.vscode-oss/extensions/ms-vscode-remote.remote-ssh-0.87.2022090715/out/extension.js:1:643428)
at async /Users/XXXXXXXXXX/.vscode-oss/extensions/ms-vscode-remote.remote-ssh-0.87.2022090715/out/extension.js:1:722225
[20:38:29.499] ------
Microsoft's remote extensions won't work with VSCodium because Microsoft restricted them to only work in VS Code. Their licenses also don't permit any usage in any editor other than Visual Studio family products. More context: https://news.ycombinator.com/item?id=31714082

Unable to SSH into the FS switch

I am trying to SSH into an FS switch remotely and I am getting the below error.
Unable to negotiate with 10.7.0.15 port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1,diffie-hellman-group14-sha1
To resolve this error. I have added a few lines in the following directory /etc/ssh/ssh_config
Host *
KexAlgorithms +diffie-hellman-group1-sha1,diffie-hellman-group14-sha1
PubkeyAcceptedKeyTypes=+ssh-dss
I have received this error.
Unable to negotiate with 10.7.0.15 port 22: no matching host key type found. Their offer: ssh-dss

server closed the connection unexpectedly python

server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
and when I run with docker exec ...
psql: error: could not connect to server: could not translate
host name "potgres" to address: No address associated with hostname
my port seems like that :
0.0.0.0:5431->5431/tcp, 5432/tcp
even when I change port number in file.yml , there is nothing happen!
Are you sure you spelled your hostname correctly?
psql: error: could not connect to server: could not translate
host name "potgres" to address: No address associated with hostname
It looks like you misspelled postgres as potgres.

Network Security Group for Filezilla(client) connection

I am new here.
Few days ago, attended MS azure events, and today registered with Azure (free account).
VM Environment: VM = CentOS 7, apache+php+mysql+vsftpd+phpMyAdmin
everything is up and running, able to visit the "info.php" via its public IP address.
SeLinux = disabled, Firewalld disabled.
my problem is not able to connect this server via Filezilla (PC client).
from Windows command prompt (FTP/put) is working, able to upload files.
But via Filezilla
Status: Connecting to 5x.1xx.1xx.7x:21...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/home/ftpuser"
Command: TYPE I
Response: 200 Switching to Binary mode.
Command: PORT 192,168,1,183,234,99
Response: 200 PORT command successful. Consider using PASV.
Command: LIST
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
Status: Disconnected from server
Status: Connecting to 5x.1xx.1xx.7x:21...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/home/ftpuser"
Command: TYPE I
Response: 200 Switching to Binary mode.
Command: PORT 192,168,1,183,234,137
Response: 200 PORT command successful. Consider using PASV.
Command: LIST
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
I believe that is because of the Network Security group settings for inbound and outbound rules, need open some port, but not sure, because I tried open 1024-65535 all allow, still not working.
If you use passive mode FTP, you should open ports 20,21 and ports that you need on Azure NSG(Inbound rules). You could check /etc/vsftpd.conf
pasv_enable=YES
pasv_min_port=60001
pasv_max_port=60005
For this example, you should open ports 60001-60005 on Azure NSG(Inbound rules).

How to connect to ClamAV daemon?

I'm trying to connect to ClamAV daemon clamd on localhost 3310 port via telnet comand in terminal:telnet 127.0.0.1 3310
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
nIDSESSION [pressed ENTER button on keyboard]
nPING [pressed ENTER]
But it gives error:
1: Only nCMDS\n and zCMDS\0 are accepted inside IDSESSION. ERROR
1: Error processing command. ERROR
Connection closed by foreign host.
Entered zPING\0 [pressed ENTER] or nPING\n useless, prompts that error again.
Can you suggest anything?

Resources