Ask Your Question

Revision history [back]

Say default user on VM is Ubuntu, floating IP is 192.168.1.170, sshkey is oskey25.pem. On Controller :-

[root@icehouse1 Downloads(keystone_admin)]# adduser ubuntu
[root@icehouse1 Downloads(keystone_admin)]# cp oskey25.pem /home/ubuntu
[root@icehouse1 Downloads(keystone_admin)]# cd /home/ubuntu
[root@icehouse1 ubuntu(keystone_admin)]# ls -l
total 4
-rw-------. 1 root root 1679 Aug 27 15:06 oskey25.pem
[root@icehouse1 ubuntu(keystone_admin)]# chown ubuntu:ubuntu *.pem
[root@icehouse1 ubuntu(keystone_admin)]# su - ubuntu
Last login: Wed Aug 27 15:04:42 MSK 2014 on pts/0
[ubuntu@icehouse1 ~]$ ls -l
total 4
-rw-------. 1 ubuntu ubuntu 1679 Aug 27 15:06 oskey25.pem
[ubuntu@icehouse1 ~]$ vi test.1
[ubuntu@icehouse1 ~]$ scp -i oskey25.pem test.1 192.168.1.170:/home/ubuntu
The authenticity of host '192.168.1.170 (192.168.1.170)' can't be established.
ECDSA key fingerprint is 47:82:0b:48:d8:75:3d:5c:f4:f2:84:e6:13:09:5c:3a.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.170' (ECDSA) to the list of known hosts.
test.1                                                                 100%   31     0.0KB/s   00:00

Before running nova boot .... Please learn first How to create nova instance with ssh keypair
Say default user on VM is Ubuntu, floating IP is 192.168.1.170, sshkey is oskey25.pem. On Controller :-

[root@icehouse1 Downloads(keystone_admin)]# adduser ubuntu
[root@icehouse1 Downloads(keystone_admin)]# cp oskey25.pem /home/ubuntu
[root@icehouse1 Downloads(keystone_admin)]# cd /home/ubuntu
[root@icehouse1 ubuntu(keystone_admin)]# ls -l
total 4
-rw-------. 1 root root 1679 Aug 27 15:06 oskey25.pem
[root@icehouse1 ubuntu(keystone_admin)]# chown ubuntu:ubuntu *.pem
[root@icehouse1 ubuntu(keystone_admin)]# su - ubuntu
Last login: Wed Aug 27 15:04:42 MSK 2014 on pts/0
[ubuntu@icehouse1 ~]$ ls -l
total 4
-rw-------. 1 ubuntu ubuntu 1679 Aug 27 15:06 oskey25.pem
[ubuntu@icehouse1 ~]$ vi test.1
[ubuntu@icehouse1 ~]$ scp -i oskey25.pem test.1 192.168.1.170:/home/ubuntu
The authenticity of host '192.168.1.170 (192.168.1.170)' can't be established.
ECDSA key fingerprint is 47:82:0b:48:d8:75:3d:5c:f4:f2:84:e6:13:09:5c:3a.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.170' (ECDSA) to the list of known hosts.
test.1                                                                 100%   31     0.0KB/s   00:00