Connection to remote server via file client - server

I have little problem. I am using Putty for connection to remote server.
ssh xxx.xx.xxx.xxx
After connection and login with password, I need to use command:
ssh username#servername
After this, I can use remove server via Putty, its work fine.
Now, I am looking for solution how to connect filemanager (WinSCP). I can connect to xxx.xx.xxx.xxx and browse filesystem here, but I cannot use secont ssh command for connection to computing server filesystem. How to solve this? Can I somehow open filemanager in Putty session location?

It looks like, that the connection tunneling feature from WinSCP is what you are looking for: https://winscp.net/eng/docs/tunneling

Related

How to use vscode remote ssh with a two step identification?

The process I follow to connect to my remote server is:
ssh myUserName#firstServerName
connectionKey
secondServerName
myUsername + Mypassword
After giving the connectionKey,I arrive to an "ssh bridge" which asks me on which subserver I want to connect and what is my username and password. At that point vscode directly tries to parse remote port from server output, and doesn't let me register to the secondServer.
How can I specify to vscode that it needs to connect to the second server before before doing anything else?

How can I transfer a dumped database in Postgres CLI from my remote server to my remote server or my local machine?

Normally, when I transfer a dumped database from postgres CLI in my local machine, I can simply sftp my_user_name#my_ip remotely from postgres CLI to my local machine without any problems. However, when it comes to my remote server, this seems like I have already connected with my server via ssh connection; thus, when I sudo su - postgres to open up postgres CLI, I cannot use the same technique to
i)sftp my_user_name#my_ip. It said request Connection timed out; I think this may be because they are not in the same WiFI network connection.
ii) or even sftp ubuntu#ec2-xx-xx-xx-xxx.....amazonaws.com. It said my aws ec2 server: Permission denied (public key)
I think this may result from I have made a SSH connection already, so if i sftp again, this will duplicate with the previous SSH connection.
Any idea ?? Please help
it should be simple. I will help you here. Firstly are both machines on same network ? your first comment looks like they are not on same network or we can say they are not connected to each other hence connection timed out. on your second comment; u would need to use pem file to connect to ec2.. Please give all details ; and I will give you commands etc. needed. Also, check security group of destination server if port 22 is open.

Nested ssh connection

I want to connect via ssh to the server and from this server connect to another server via ssh. Do you know if there are any extensions that would allow me to do so?
Can you just use
ssh -t userid1#machine1 "ssh userid2#machine2"
assuming that you have a ssh client on the first target?

how to solve the error of DBeaver database?

I used DBeaver (database management tools) and faced this type of error
It looks like you're trying to connect to a MySQL instance over SSH. Most likely issue is that the remote server isn't accepting SSH connections. If you try the following at a command line, can you establish a connection? (Bash if you're using Linux, putty if you're on Windows)
ssh <user>#<remotehost>
Also it's important to mention that you probably have two sets of credentials you're using here. The credentials to connect to the SSH server are not necessarily the same as the credentials to connect to the MySQL database.

How to access a remote Postgres database using a local GUI tool

I am running openerp(odoo) application from amazon cloud server using putty and it is ubuntu Headless(NO GUI) server. PostgreSQL is the database used for this application. Right now I am only able to access it in command mode as there is no gui in Putty. In Windows, I have installed pgadmin3. Is it possible to access it from here by configuring?
You can configure your security group to open up the postgres port accessible from your IP address (I would highly recommend the access to be limited that way). After that you can just point your GUI client the external IP address of your instance using the port where the service is running on.
I suggest you to use pgadmin gui tool to access postgres database.
You can set up an SSH tunnel in putty and use that to access the remote database with your local pgadmin3. This is a very good and secure way to do things.
First, in Putty (Connection / SSH / Tunnels) add a source port of your choice, 5000 for example. Then enter localhost:5432 for Destination (providing postgres is running on port 5432 on the server). Press Add and save your session. Next time you open your ssh connection with Putty, the tunnel will be active.
After this, set up a new connection in pgadmin3, Host: localhost and Port: 5000 (and your username and pasword, of course). Now, if the putty session is active, you should be able to connect.
In postgresql.conf file, find a line called
listen_addresses = 'localhost' and change it to '*'
Next in pg_hba.conf add this line in IPV4 local connections,
host all all (Your external ip address in CIDR format) trust
Finally restart the database using this command,sudo service postgresql restart