[root@sakura2 ~]# ssh 175.184.21.115
The authenticity of host '175.184.21.115 (175.184.21.115)' can't be established.
RSA key fingerprint is 4b:51:2a:28:20:9b:ab:c2:61:d2:c7:cc:07:82:db:2c.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '175.184.21.115' (RSA) to the list of known hosts.
Enter passphrase for key '/root/.ssh/id_rsa':
Welcome to Ubuntu 12.04.2 LTS (GNU/Linux 3.5.0-23-generic x86_64)
* Documentation: https://help.ubuntu.com/
System information as of Fri Jul 18 11:32:03 JST 2014
System load: 0.0 Processes: 68
Usage of /: 5.2% of 27.13GB Users logged in: 1
Memory usage: 29% IP address for eth0: 175.184.21.115
Swap usage: 0% IP address for eth1: 10.100.74.33
Graph this data and manage this system at https://landscape.canonical.com/
142 packages can be updated.
79 updates are security updates.
Last login: Fri Jul 18 10:37:50 2014 from 153.121.40.37
root@ubuntu:~#
ssh <ニフティのIPアドレス>
初回接続時に表示、【yes】
パスフレーズ指定時は入力
ニフティさくら手順
1. ニフティの秘密鍵作成
# ssh-keygen
2. ニフティ公開鍵をコピー
# cat ~/.ssh/id_rsa.pub
ssh-rsa AAAAB3Nza……8AwAVw== root@ubuntu
3. さくらの authorized_keys に追加
# vi ~/.ssh/authorized_keys
ファイルの中に「2.」でコピーした内容を入れる
4. さくら ニフティにログイン
メモ帳などに貼り付けます
先ほどと同じ手順です
以上で、ハンズオンの下準備は完了です
root@ubuntu:~/.ssh# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
ac:ae:0b:c8:ff:d2:74:7b:c4:cf:d5:a8:c5:b1:32:ac root@ubuntu
The key's randomart image is:
+--[ RSA 2048]----+
| |
| |
| |
| . . |
| S . . = |
|.. . o o + * . |
|... o o o + * |
| .o o . E + |
| .=+. . |
+-----------------+
コンテナ ID・イメージ ID
dokcer ps
root@ubuntu:~# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
31a2629738e9 ubuntu:14.04 /bin/bash 3 minutes ago Exited (0) 2 seconds ago cranky_hypatia
2ad166fc3787 ubuntu:14.04 /bin/bash 7 minutes ago Exited (0) 4 minutes ago hopeful_archimedes
■ docker images
root@ubuntu:~# docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
ubuntu-test latest b4e346166aea 10 seconds ago 276.5 MB