J
J
Julia Lis2021-11-08 11:25:54
linux
Julia Lis, 2021-11-08 11:25:54

How to connect to local server via SFTP vagrant debian?

There is a local debian machine, I run it through Vagrant (VirtualBox).
Everything is fine, I can climb the server, etc. via console.
And how to connect to your local server via SFTP?
I found this article in vagrant - Vagrant Push FTP & SFTP Strategy

Where, as I understand it, an application is created in the configuration file

config.push.define "ftp" do |push|
  push.host = "ftp.example.com"
  push.username = "username"
  push.password = "password"
end

And then vagrant push is launched.

Or are there other better options? I understood right away how to connect to a remote server, everything is simple there. And here it turns out I'm knocking on my IP?
192.168.33.10

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
Julia Lis, 2021-11-08
@julia1990

ip: 127.0.0.1
port: 2222
Protocol: sftp
Well, go as root
But writes Unable to connect to the server,
Although I started the server and sit quietly in the console.

A
Alexander Karabanov, 2021-11-13
@karabanov

It is necessary to use the IP that is assigned to the virtual machine.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question