I do not get connection with this VM: ssh ibmcloud#129.41.147.70
ssh: connect to host 129.41.147.70 port 22: Network is unreachable
Could it be that firewall rules now prevent me to connect to
129.41.147.70?
I believe you need to specify the ssh key, like:
ssh -i your_public_key ibmcloud#129.41.147.70
Also, check if the VM is runnning in the Bluemix UI and if you can ping the server from your machine.
Actually if you can ping it, it is likely a firewall issue with the error you are seeing.
Related
I created a reverse SSH tunnel from a public server to my local Windows Machine. It works properly and I can access my local machine. However, due to internet disruption, the tunnel disconnects but doesn't come up when internet connectivity resumes. I checked on windows that the ssh process was still running and the connection was shown established.
>> Get-Process ssh | select -expandproperty ProcessName
ssh
Get-NetTCPConnection also showing Established Internet on port 22.
The tunnel is though not accessible from public server
$ ssh user#localhost -p 2000
ssh: connect to host localhost port 2000: Connection refused
How can I identify whether SSH tunnel is inactive or not so that I can kill it and restart new. Any command line solution will do for me except autossh as its not available for windows.
I'm trying to connect from MongoDB compass to my database which is on VPS. MongoDB itself is working on the VPS. As well I allow firewall to connect from my IP. But it's still doesn't allow me to go. Error - connect ECONNREFUSED "ipaddress:port"
I also tried to use SSH tunnel with the same IP and port and I'm getting confused which SSH username and SSH password I need to use?
I'm using Ubuntu 18.04 on my VPS.
I checked so many resources on how to connect but doesn't find any helpful. First the problem was with Firewall and allowance of ports and IP. But now i'm 100% sure that I allow it in firewall.
For SSH Hostname - I use my IP
SSH Tunnel port - I use port which I allow
GOAL: Any solution how I can connect my MongoDB which is on VPS to MongoDB Compass? I'm really clueless on how to get it.
EDIT1
This error I receive after I'm trying to connect with MongoDB Compass -
Error creating SSH Tunnel: (SSH) Channel open failure: Connection refused
When I change the port I receive this error - Error creating SSH Tunnel: connect EADDRINUSE
I Have a problem on Connect from Port Forwarding Database on Openshift :
Running Pods Postgresql :
I Try Connect to Container running the database to check process and psql command, then it works :
Next, I Try Port Forwarding for Try Connection from outside Openshift Cluster:
Then I Try Connect from Outside Cluster to connect Postgresql have Error: Connection Refuse
Im Using IP Based or Hostname / FQDN Not Working and Error Still Exist
And When I Try Check Firewall port it has been opened port 5432/TCP :
Anyone Can Help Me With This problem ?
Thanks
Note: Before I have Been Looking Documentation but Not Working Resolve the Problem
Source Documentation:
https://www.openshift.com/blog/openshift-connecting-database-using-port-forwarding
"psql: could not connect to server: Connection refused" Error when connecting to remote database
The oc port-forward command is forwarding from only your loopback interfaces.
If you are running your client on the same machine where the cluster is running, then use localhost as your "Host".
If you are running your client on a different machine, they you need more network redirection to get this to work. Please see this post for more information as well as work-arounds for your problem: Access OpenShift forwarded ports from remote host
I have PostgreSQL 9.4 running on a Linux VPS, and I need to be able to connect to it over SSH from both Linux and Windows clients. (I will later need to connect to multiple servers, and so that all clients use the same port numbers, I'm forwarding to port 5551 for the first server, then I will use 5552, 5553, etc.)
From a Linux client I just run ssh -fNg -L 5551:localhost:5432 user#remote1.com and connect to localhost:5551 with PGAdmin3 or any other client app. Works great.
On Windows, I'm using PuTTY and Pageant. I got the connection to user#remote1.com via terminal working, then I went to the SSH Tunnels and added L5432 localhost:5551. Terminal connection still works, but when I try to connect with PGAdmin3 to localhost:5551 I get an error:
could not connect to server: Connection refused (0x0000274AD/10061) Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5551?
I resolved it. Like many things, this is obvious in hindsight. I had things backward in the SSH Tunnels setup in PuTTY. It needs to be L5551 remote1.com:5432
I try to copy file from remote server to my local machin but it gives following error
ssh: connect to host 103.241.144.137 port 22: Connection refused.
command : scp root#111.111.111:/home/msecondo/public_html/jsp/afterLogin/sachin/PHR/ /localpth/.
"Connection refused" means that there was no process accepting connections at the IP address and port that your client tried to connect to. In this case, it probably means that there is no SSH server running at 103.241.144.137 port 22. Alternately, if the SSH server is running, it may not be listening on the IP address or port that you tried to connect to.
StackOverflow isn't the right site for troubleshooting SSH server configuration. If you have administrator privileges on the remote server, then you should look into how the SSH server is configured and whether it's running. If you're not an administrator on the remote server, you should report this to the administrators so that it can be investigated.