I have a Digitalocean droplet that has postgres installed. Its running an can connect to it from the digitalocean console but im trying to connect from my local dev machine at home and i cant seem to make this work. Digitalocean droplet has SSH installed and i can successfully SSH into it from putty at home.
At home i am locally running postgres 10 for development testing, so this is the pgAdmin that i am using to try to connect to the digitalocean instance of postgres.
I am trying to figure out how to use putty to tunnel into the digitalocean SSH connection and use digital oceans 5432 port for connection.
Ok, i finally found something that worked. In the Putty SSH tunnel section i added a Local tunnel with source port: 8000 and the destination: 127.0.0.1:5432
Once i save that and connect, NOW i can us my local pgAdmin to connect to the digitalocean droplet postgres connection
Related
I want to ssh into vmware esxi 6.7 version but gets permissino denied error.
I have
1- enabled ssh on esxi 6.7 by starting TSM-SSH into host mode
2- created ssh key on remote vm
3- i can ping esxi 6.7 server
4- esxi port also working
5- in ssh config remote permission set= yes and public key authentication = yes
but still unable to ssh
i am using correct authentications. help me with this as i am new to vmware and don't know other ways
It is solved by making changes in configuration file of .ssh and checking if any firewall is active.
After this we just need to restart our ssh service.
With correct username#ip connect to our server.
This is working for me.
my Docker-Container is on my server.
Via SSH I can connect to the server from my local PC.
ssh user#RemoteServerIP -p 3360
From there I can connect to the Docker container via SSH
ssh userRemoteServer#DockerContainerOnServerIP -p 22
A Apache Webserver is running on the Docker-Container.
How can I access the Webserver on my local computer?
from you server try to figure out which port the apache container is using.. you can use netstat command sudo netstat -ntlp usually in the PID/Program name docker port is PID/docker-proxy .
after you know which port apache container is using, then u can access it using yourServerIP:ApacheContainerPort from you local computer
assuming of course the way you exposing apache port inside container is correct.
I have created a DigitalOcean droplet using docker-machine command. Now, I am unable to login from my local machine to droplet because my ssh key is not added to server.
I have used the following command to create droplet
docker-machine create --driver=digitalocean --digitalocean-access-token=MyToken --digitalocean-size=1gb --digitalocean-backups=true --digitalocean-ssh-user=root myapp
I created the droplet from my local machine. I have added my local access key to droplet as well but I am still unable to login.
I am using the following command to ssh
ssh root#droplet-ip-address
I have tried to access droplet from digitalocean console as well but it does not allowed me to copy/paste ssh key.
Is there any other way to solve this issue?
Please help me
You need to pass the --digitalocean-ssh-key-fingerprint parameter to docker-machine to tell it which SSH key to use.
See the documentation here for details.
i am newbie here.
I want to create ssh tunnel application,
but i have a problem with my application.
If I trying to upload a file (>500kb) trough that SSH Tunnel, my internet connection getting not responding and after that I'm disconnected from server.
what is the problem? do ssh server have a limit to upload connection?
*I use dropbear for ssh server
I have remote host/server with ssh access.
I have my computer in my work network which can connect via ssh only
in within this network.
And i can not connect via ssh to other world because of port 22
blocked by firewall.
I am trying to create ssh tunnel to forward example localhost:80 to remote_server:22.(i suppose to connect via ssh to localhost and will be forwarded to my remote server)
I tried for example without proxy
sudo ssh -L localhost:443:remote_server_ip:22 root#remote_host_name
and with proxy
https://wiki.archlinux.org/index.php/Tunneling_SSH_through_HTTP_proxies_using_HTTP_Connect
I have read a lot and checked stackoverflow but it still is not clear for me how to resolve this issue.