###CyberduckでSFTP接続をしたいけど何が問題なのか知りたい。ドットインストール「ローカル開発環境の構築MacOS X編」
PHPのローカル開発環境を構築するため、ドットインストールの「ローカル開発環境の構築MacOS X編」のレッスンを進めていて、「#07 Cyberduckを導入しよう」の回でCyberduckを使ったSFTPサーバの接続に失敗している。Cyberduckを開き、「SFTPサーバ」を指定。sshで出てきた数字10.0.2.15をそのままサーバに入力、ポート「22」ユーザ名「vagrant」パスワード「vagrant」キーチェーンに追加にチェックを入れて接続し失敗。
###発生している問題・エラーメッセージ
vagrant upで毎回同じループに引っかかり、ctrl c してもう一度vagrant upすると立ち上がるらしいので、毎回そうしてから vagrant ssh でパスワード入力していた。
Unix command
mymbp:mycentos $ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Checking if box 'bento/centos-6.7' is up to date... ==> default: Resuming suspended VM... ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 127.0.0.1:2222 default: SSH username: vagrant default: SSH auth method: private key default: Warning: Authentication failure. Retrying... ^C==> default: Waiting for cleanup before exiting... default: Warning: Connection refused. Retrying... default: Warning: Authentication failure. Retrying... Vagrant exited after cleanup due to external interrupt. mymbp:mycentos yuriiwasaki$ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Checking if box 'bento/centos-6.7' is up to date... ==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision` ==> default: flag to force provisioning. Provisioners marked to run always will still run. ```Unix command
Last login: Sat Sep 17 16:43:39 on ttys000
mymbp:~ $ cd MyVagrant
mymbp:MyVagrant $ cd mycentos
mymbp:mycentos $ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'bento/centos-6.7' is up to date...
==> default: Resuming suspended VM...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...
^C==> default: Waiting for cleanup before exiting...
default: Warning: Connection refused. Retrying...
default: Warning: Authentication failure. Retrying...
Vagrant exited after cleanup due to external interrupt.
mymbp:mycentos $ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'bento/centos-6.7' is up to date...
==> default: Machine already provisioned. Run vagrant provision
or use the --provision
==> default: flag to force provisioning. Provisioners marked to run always will still run.
mymbp:mycentos $ vagrant ssh
vagrant@127.0.0.1's password:
Last login: Sat Sep 17 16:17:31 2016 from 10.0.2.2
[vagrant@localhost ~]$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 08:00:27:c3:63:c3 brd ff:ff:ff:ff:ff:ff
inet 10.0.2.15/24 brd 10.0.2.255 scope global eth0
inet6 fe80::a00:27ff:fec3:63c3/64 scope link
valid_lft forever preferred_lft forever
[vagrant@localhost ~]$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 08:00:27:c3:63:c3 brd ff:ff:ff:ff:ff:ff
inet 10.0.2.15/24 brd 10.0.2.255 scope global eth0
inet6 fe80::a00:27ff:fec3:63c3/64 scope link
valid_lft forever preferred_lft forever
mymbp:mycentos $ vagrant ssh
vagrant@127.0.0.1's password:
Last login: Sat Sep 17 17:19:36 2016 from 10.0.2.2
[vagrant@localhost ~]$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 08:00:27:c3:63:c3 brd ff:ff:ff:ff:ff:ff
inet 10.0.2.15/24 brd 10.0.2.255 scope global eth0
inet6 fe80::a00:27ff:fec3:63c3/64 scope link
valid_lft forever preferred_lft forever
[vagrant@localhost ~]$ logout
Connection to 127.0.0.1 closed.
mymbp:mycentos $ vagrant suspend
==> default: Saving VM state and suspending execution...
mymbp:mycentos $ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'bento/centos-6.7' is up to date...
==> default: Resuming suspended VM...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...
^C==> default: Waiting for cleanup before exiting...
Vagrant exited after cleanup due to external interrupt.
mymbp:mycentos $ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'bento/centos-6.7' is up to date...
==> default: Machine already provisioned. Run vagrant provision
or use the --provision
==> default: flag to force provisioning. Provisioners marked to run always will still run.
###動画を見てて気づいた点 多分正常だと出てくるはずの ```unix command 3: eth1: <broadcast
の項目が出てない、192.168.33.10はそこにあるはずなんだけど以下の状態のため、ない。
Unix
1[vagrant@localhost ~]$ ip a 21: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 3 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 4 inet 127.0.0.1/8 scope host lo 5 inet6 ::1/128 scope host 6 valid_lft forever preferred_lft forever 72: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 8 link/ether 08:00:27:c3:63:c3 brd ff:ff:ff:ff:ff:ff 9 inet 10.0.2.15/24 brd 10.0.2.255 scope global eth0 10 inet6 fe80::a00:27ff:fec3:63c3/64 scope link 11 valid_lft forever preferred_lft forever 12
###試したこと
192.168.33.10をCyberduckのサーバに手入力で接続して失敗。
mycentosからvagrantfileを確認したところ、最初の段階でコメントアウトを外すことはできている
# -*- mode: ruby -*- # vi: set ft=ruby : # using a specific IP. config.vm.network "private_network", ip: "192.168.33.10" # Create a public network, which generally matched to bridged network.
###補足情報(言語/FW/ツール等のバージョンなど)
macOS X /VirtualBox 5.0.18 / Vagrant 1.8.4 / Cyberduck 5.1.0
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/09/18 04:59
2016/09/27 03:06