SSH remote connection to server with vscromium - linux

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

Related

How to install MongoDB Enterprise 4.4 on remote redhat server?

I followed the instructions listed here, https://docs.mongodb.com/manual/tutorial/install-mongodb-enterprise-on-red-hat/, and tried to install on a remote server from my local machine. I ssh from my local machine into the server and performed the steps for installation.
I'm not sure if there are additional steps that need to be completed or whether you have to set Directory Paths that are not the default ones since you are using a server instead of local machine. My current error is when I run mongo from my terminal and I get this error
Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :
connect#src/mongo/shell/mongo.js:374:17
#(connect):2:6
exception: connect failed
exiting with code 1
[h699972#csc2cxp00020938 ~]$ mongo --host
sudo vim /etc/mongod.conf and setting bindIp: 0.0.0.0 did not work. Any help would be appreciated.

OpenVPN client is not working on Windows computer?

I try to run my OpenVPN client on my windows 10 machine in order to connect to a remote OpenVPN CentOS 7 server but it does not work. I get the error below:
Options error: --capath fails with 'C:\Users\Desktop\OpenVPN\ca.crt': No such process (errno=3)
Options error: --cert fails with 'C:\Users\Desktop\OpenVPN\Win10client.crt': No such process (errno=3)
Fri Mar 22 22:56:20 2019 WARNING: cannot stat file 'C:\Users\Desktop\OpenVPN\Win10client.key': No such process (errno=3)
Options error: --key fails with 'C:\Users\Desktop\OpenVPN\Win10client.key'
Fri Mar 22 22:56:20 2019 WARNING: cannot stat file 'C:\Users\Desktop\OpenVPN\myvpn.tlsauth': No such process (errno=3)
Options error: --tls-crypt fails with 'C:\Users\Desktop\OpenVPN\myvpn.tlsauth': No such process (errno=3)
This is the config that I have on my ovpn file:
client
tls-client
--capath C:\\Users\\Desktop\\OpenVPN\\ca.crt
--cert C:\\Users\\Desktop\\OpenVPN\\Win10client.crt
--key C:\\Users\\Desktop\\OpenVPN\\Win10client.key
--tls-crypt C:\\Users\\Desktop\\OpenVPN\\myvpn.tlsauth
remote-cert-eku "TLS Web Client Authentication"
proto udp
remote serveraddress 1194 udp
dev tun
topology subnet
pull
Assuming your config file is well done. Try to reinstall openvpn, and put your config file to the c:/program files/openvpn/config folder. Then you can start the openvpn Service. Therefore you dont need to use the Openvpn gui.

HAProxy 1.6 configuration Node.js ssh server child process

I am running a Node.js SSH server that spawns a child process to exec code (using require('child_process').spawn) after successful authentication.
The client server connections works fine on port 22 and connection is kept alive successfully through spawned process.
I am trying to setup up now with HAProxy 1.6, to forward port 22 to a non-privileged port on which the SSH server is listening.
However, when the child process is spawned the server either errors Error: write EPIPE or Error: read ECONNRESET.
This suggests to me there is an issue with prematurely closed stream or connection between the client -> HAProxy -> server?
I am looking at websocket configurations and ssh configurations for HAProxy and various keep alive options. However I cannot get the connection to work.
My configuration:
global
daemon
maxconn 10000
log 127.0.0.1 local0
defaults
log global
option tcplog
option logasap
timeout connect 500s
timeout client 5000s
timeout server 2h
timeout server-fin 5000s
timeout client-fin 5000s
timeout tunnel 1h
option tcpka
frontend sshd
bind *:22
default_backend ssh
timeout client 2h
backend ssh
mode tcp
server ssh2server 127.0.0.1:5000 check port 5000
Any pointers or help would be awesome. Thanks in advance.
EDIT
Runing haproxy in debug mode I have
00000000:sshd.accept(0004)=0005 from [my ip]
00000000:ssh.srvcls[0005:0006]
00000000:ssh.clicls[0005:0006]
00000000:ssh.closed[0005:0006].
On the tcplog
Oct 15 15:15:38 localhost haproxy[16036]: 128.277.13.23:51146 [15/Oct/2016:15:15:38.804] sshd ssh/ssh2server 1/0/+0 +0 -- 1/1/1/1/0 0/0

Getting "Error: failed to connect to tunnel VM" with intern/saucelabs

I'm just starting out with intern/saucelabs. Whenever I try a remote test, I'm getting Error: failed to connect to tunnel VM.
My intern.js has
environments: [
{ browserName: 'firefox', version: '28'},
],
tunnel: 'SauceLabsTunnel',
tunnelOptions: {
username: 'foo',
accessKey: 'xxxxxxxxxxxx-xxxx-xxxx-xxxx-xxxx'
},
Execution log
$ intern-runner config=theintern/intern-sauce.js
Listening on 0.0.0.0:9000
Starting tunnel...
Using no proxy for connecting to Sauce Labs REST API.
**********************************************************
A newer version of Sauce Connect (build 1283) is available!
Download it here:
https://saucelabs.com/downloads/sc-4.3-linux.tar.gz
**********************************************************
Started scproxy on port 44275.
Starting secure remote tunnel VM...
Secure remote tunnel VM provisioned.
Tunnel ID: 6586b9012ca2424b8ecd6bd6970e996c
Secure remote tunnel VM is now: booting
Secure remote tunnel VM is now: running
Remote tunnel host is: maki76026.miso.saucelabs.com
Using no proxy for connecting to tunnel VM.
Establishing secure TLS connection to tunnel...
Cleaning up.
Finished! Deleting tunnel.
Error: failed to connect to tunnel VM.
Error: failed to connect to tunnel VM.
at reject <../../../../../../../usr/lib/node_modules/intern/node_modules/digdug/SauceLabsTunnel.js:353:17>
at readStartupMessage <../../../../../../../usr/lib/node_modules/intern/node_modules/digdug/SauceLabsTunnel.js:381:12>
at <../../../../../../../usr/lib/node_modules/intern/node_modules/digdug/SauceLabsTunnel.js:434:12>
at Array.some <native>
at Socket.<anonymous> <../../../../../../../usr/lib/node_modules/intern/node_modules/digdug/SauceLabsTunnel.js:428:21>
at Socket.EventEmitter.emit <events.js:117:20>
at Socket.<anonymous> <_stream_readable.js:746:14>
at Socket.EventEmitter.emit <events.js:92:17>
at emitReadable_ <_stream_readable.js:408:10>
at emitReadable <_stream_readable.js:404:5>
In case it's significant, I'm currently on the free tier.
Some of the most common issues folks run into with Sauce Connect are related to firewall and proxy settings. Please ensure that 443 is open between Sauce Connect and *.saucelabs.com. If a proxy server is used to route traffic on your network Sauce Connect supports proxy servers by passing the --pac or –p flag.
Please download the latest version of Sauce Connect from https://docs.saucelabs.com/reference/sauce-connect/ and start the client with all the necessary flags (a full list is available on the aforementioned page). If this version does not work please start Sauce Connect passing the -v flag, this will generate a verbose log file which will help Sauce Labs diagnose connectivity issues.

Unsuccessful connection on ssh to the subordinate nodes of a cluster

Executing start of services on the subordinate nodes of a cluster by means of the following command:
hadoop#one:/export/hadoop-1.0.1/bin$. ./start-all.sh
not the first time I receive result
starting namenode, logging to /export/hadoop-1.0.1/libexec/../logs/hadoop--namenode-one.out
192.168.1.10: starting datanode, logging to /export/hadoop-1.0.1/libexec/../logs/hadoop-hadoop-datanode-myhost2.out
192.168.1.11: ssh: connect to host 192.168.1.11 port 22: Connection timed out
192.168.1.5: starting secondarynamenode, logging to /export/hadoop-1.0.1/libexec/../logs/hadoop-hadoop-secondarynamenode-one.out
starting jobtracker, logging to /export/hadoop-1.0.1/libexec/../logs/hadoop--jobtracker-one.out
192.168.1.10: starting tasktracker, logging to /export/hadoop-1.0.1/libexec/../logs/hadoop-hadoop-myhost2.out
192.168.1.11: ssh: connect to host 192.168.1.11 port 22: Connection timed out
How do I fix the error below:
ssh: connect to host port 22: Connection timed out
hadoop#one: /export/hadoop-1.0.1/bin$ ssh -vvv 192.168.1.10
Sun_SSH_1.5, SSH protocols 1.5/2.0, OpenSSL 0x1000004f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: ssh_connect: needpriv 0
debug1: Connecting to 192.168.1.10 [192.168.1.10] port 22
debug1: connect to address 192.168.1.10 port 22: Connection timed out
ssh: connect to host 192.168.1.10 port 22: Connection timed out
What to do to correct an error?
Do you have sshd daemon running on your machine? Your OS might come with ssh, but in order to start sshd daemon, you need to install ssh completely. By complete I mean :
ssh : The command we use to connect to remote machines - the client.
sshd : The daemon that runs on the server and allows clients to
connect to this server.
Also, make sure there is no issue with port 22. If you still face some issue try ssh with -v switch to get the complete trace.
ssh -v myhost2
You can go here for a detailed explanation of ssh.

Resources