According to the tutorial steps:
Copy your ssh-key to Vagrant VMs
This steps has to be repeated every time your Vagrant VMs are re-created (i.e. 
vagrant destroy command was issued)
echo csit@192.168.255.10{0,1,2} | xargs -n 1 ssh-copy-id

Respond with "csit" as password (without quotes). From now on you have 
password-less access from this account to csit@vagrant-vms via SSH.

Source of the 
tutorials:https://wiki.fd.io/view/CSIT/Tutorials/Vagrant/Virtualbox/Ubuntu

The following print appears:
(env) root@ubuntu:~# echo csit@192.168.255.10{0,1,2} | xargs -n 1  ssh-copy-id 
-f

/usr/bin/ssh-copy-id: ERROR: failed to open ID file '/root/.pub': No such file

/usr/bin/ssh-copy-id: ERROR: failed to open ID file '/root/.pub': No such file

/usr/bin/ssh-copy-id: ERROR: failed to open ID file '/root/.pub': No such file

This is my catalog:
(env) root@ubuntu:~# cd /root/
(env) root@ubuntu:~# ll
total 68
drwx------ 10 root root 4096 May 14 00:55 ./
drwxr-xr-x 24 root root 4096 May 13 17:58 ../
-rw-------  1 root root 4055 May 14 00:01 .bash_history
-rw-r--r--  1 root root 3106 Oct 22  2015 .bashrc
drwx------  3 root root 4096 May 13 18:50 .cache/
drwx------  4 root root 4096 May 13 19:35 .config/
drwx------  3 root root 4096 May 10 23:13 .dbus/
drwx------  2 root root 4096 May 11 00:28 .gnupg/
drwxr-xr-x  2 root root 4096 May 14 00:55 key_backup/
-rw-r--r--  1 root root  148 Aug 17  2015 .profile
drwx------  2 root root 4096 May 13 23:59 .ssh/
-rw-------  1 root root 1766 May 14 00:55 vagrant
drwxr-xr-x  7 root root 4096 May 14 00:16 .vagrant.d/
-rw-r--r--  1 root root  404 May 14 00:55 vagrant.pub
-rw-------  1 root root 5465 May 14 00:17 .viminfo
drwx------  5 root root 4096 May 13 21:07 VirtualBox VMs/

What should I do? Do you have any suggestions to solve it? Thank you!




nwnj...@fiberhome.com

Reply via email to