L
L
l2p2014-02-16 19:51:36
MySQL
l2p, 2014-02-16 19:51:36

How to make SFTP and MYSQL work remotely?

Through SSH I successfully log in and work, but it does not let me through SFTP.
My software:
- FilZilla
- Mysql Query Browser
I can't access either of them.
Server OC: Ubuntu
Optional (from sshd_config):

Protocol 2
Subsystem sftp /usr/lib/openssh/sftp-server

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vlad Zhivotnev, 2014-02-16
@inkvizitor68sl

For Mysql, forward the port to your local machine with an ssh tunnel. quintagroup.com/services/support/tutorials/mysql-w...
Then connect to localhost. Well, mysql on the server should listen on 127.0.0.1 (that is, the skip-networking option should not be enabled). Also, if the user is told access denied, then you need to create a user with access from host 127.0.0.1, and not from localhost (localhost in mysql is always a socket).
The option proposed above about creating a user with remote access is extremely insecure - traffic in mysql is not encrypted, you can catch both requests and responses.

A
Andrew, 2014-02-16
@kaasius

Mysql is not clear.
Sftp is simply mounted to the file system, in Windows, in Linux, in Mac. What is your OS?

S
Sergey Lerg, 2014-02-16
@Lerg

Filezilla connects fine via SFTP with the same options as SSH.
What error does Filezilla say?

V
Vit, 2014-02-16
@fornit1917

in order to remotely connect to the muscle, you need to create the appropriate user there ( webew.ru/articles/414.webew ). Well, allow the muscle to accept external connections.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question