LoginSignup
1
0

More than 5 years have passed since last update.

Vagrant環境にFTP転送ツールでアクセスする

Last updated at Posted at 2019-05-07

Vagrant環境にFTP転送ツールでアクセスする

ターミナルでVagrantfileを配置している階層に移動し

$ vagrant ssh-config

すると下記のような文字列が出力される

HostName 127.0.0.1
  User vagrant
  Port 2222
  UserKnownHostsFile /dev/null
  StrictHostKeyChecking no
  PasswordAuthentication no
  IdentityFile /Users/mac/.vagrant.d/boxes/CentOS7_local/0/virtualbox/vagrant_private_key
  IdentitiesOnly yes
  LogLevel FATAL

上記の場合
プロトコル SFTP
サーバ 127.0.0.1
ユーザ名 vagrant
ポート 2222

パスワードをパスで指定。
macの場合 Command + Shift + G

  /Users/mac/.vagrant.d/boxes/CentOS7_local/0/virtualbox/vagrant_private_key 

これでアクセスできた。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0