Thursday, June 9, 2016

Secure Copy (scp): Sending Public Key to Remote Server

Command:

$ scp .ssh/id_rsa.pub username@remote.servername.com:~/
username@remote.servername.com's password:
id_rsa.pub                                                                                                                100%  400     0.4KB/s   00:00                

ssh-keygen: Generating Private and Public Keys (公開鍵と秘密鍵を作る)


Commands:

$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/username/.ssh/id_rsa): 
/Users/username/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/username/.ssh/id_rsa.
Your public key has been saved in /Users/username/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:xCFSgzCQb5J5yjX911Xvdav018XVmXbfibdoEYxjXs0


$ ls -l .ssh/
total 24
-rw-------  1 username  staff  1679 Jun  4  2014 id_rsa
-rw-r--r--  1 username  staff   394 Jun  4  2014 id_rsa.pub
-rw-r--r--  1 username  staff  1118 May 16 10:26 known_hosts


$ cat .ssh/id_rsa
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEAzTem0991UOAl1phQcdB+NvMsP0h8AEXPdb3P2fwhMV641G97
oVGh2+BBwpe/6V6SYMska+nRObJdhZRN4z1rmtqKGd7l6H+zZIitljD1Q6VmXihN
s8cpxIOcj8xNQLcMiSPmNeR27eFjRBIV7B7pwrvnpBn93d8Ou1QsRs/GgNU28Xus
zrN3vVVza4EFvfcnA+cbVwF4fMeSbfh4YAJmuT+/oENK0jCkmLMSmq+03EdZOcoP
bgtNrvDYKo7kA16KizvSPghsb9a3xcpep/H1JXJTxYH7Sc2CvSbsx8RJd8jBUh/4
s0r4mCqdDE6YdXR91FmuQ4iAH/G5Q5mVZDwpEwIDAQABAoIBAHDyXkliRYlbtLel
YTEjFTRdJk82L7less4UyB8rm4E2pveU3DBvY2xGwyq8po1k1Z+cbtFOAS+GMd7h
PvUAywaRnUyb12HdVvjQGOn+zB6NHAhamlmGFkDoRvUBJe8mUCnyrjOfKK3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Wg1uHelZK7GUAl7rDXfcC7vyXALRZI/g==
-----END RSA PRIVATE KEY-----


$ cat .ssh/id_rsa.pub
ssh-rsa AAAAB3NzaC1yd2EAAAADAQABAAABAQDNN6bT33VQ4CXWmFBx0H428yw/SHwARc91vc/Z/CExXrjUb3uhUaHb4EHCl7/pXpJgyyRr6dE5sl2FlE3jPWua2ooZ3uXof7NkiK2WMPVDpWZeKE2zxynEg5yPw41AtwyxI+Y15Hbt4WNEEhXsHunCu+ekGf3d3w67VCxGz8aA1Tbxe6zOs3e9VXNrgQW99ycD5xtXAXh8x5Jt+HhgAma5P7+gQ0rSMKSYsxKxr7TcR1k5yg9uC02u8NgqjuQDXoqLO9I+CGxv1rfFyl6n8fUlclPFgftJzYK9JuzHxEl3yMFSH/izSviYKp0MTph1dH3UWa5DiIAf8blDmZVkPCkT OpenShift-Key


Vocabularies:
  • Public-key cryptography (公開鍵暗号)
  • Symmetric-key algorithm (共通鍵暗号)

素読吟味(そどくぎんみ)


  • Kansei Reforms (寛政の改革)
  • Shigin (詩吟(しぎん))

学問吟味(がくもんぎんみ)

  • Kansei Reforms (寛政の改革)
  • Edo period (江戸時代)

科挙(かきょ)


  • Imperial examination (科挙(かきょ))
  • 試験

心学(しんがく)

心学(しんがく) = 石門心学(せきもんしんがく)

基盤:

  • 神道
  • 儒教
  • 仏教

吏僚(りりょう)

吏僚(りりょう) = 官吏(かんり)

朱子学(しゅしがく)


宋明理学(そうみんりがく) → 朱子学(しゅしがく)

宋明理学(そうみんりがく) = 理学(りがく)

宋明理学(そうみんりがく) = 道教(どうきょう)
  • Cheng-Zhu school (朱子学(しゅしがく))
  • Zhu Xi (朱子(しゅし))
  • Neo-Confucianism (宋明理学(そうみんりがく))
  • Taoism (道教(どうきょう))

孝経(こうきょう)

経書(けいしょ) → 十三経(じゅうさんけい、じゅうさんぎょう) → 孝経(こうきょう)

  • Classic of Filial Piety (孝経(こうきょう))
  • Zengzi (曾子(そうし))

論語(ろんご)

経書(けいしょ) → 四書(ししょ) → 論語(ろんご)

  • Analects (論語(ろんご))


経書(けいしょ)

経書(けいしょ) = 儒家経書(じゅかけいしょ)

儒家経書の種類:

  • 四書(ししょ)
  • 五経(ごけい、ごきょう)
  • 三来(さんらい)
  • 春秋三伝(しゅんしゅうさんでん)
  • 十三経(じゅうさんけい、じゅうさんぎょう)
  • Four Books and Five Classics (四書五経(ししょごきょう))

儒者(じゅしゃ)

儒者(じゅしゃ) = 儒学者(儒学者)

  • Confucianism (儒教)
  • Confucius (孔子)
  • Six Arts (六芸(りくげい))
  • Zhou dynasty (周)

訓点(くんてん)

  • Okurigana (送りがな)
  • Furigana (振り仮名(ふりがな))
  • 送り点
  • ヲコト点
  • Kanbun (漢文訓読)

句点(くてん)


約物(やくもの) → 句読点(くとうてん) → 句点(くてん)
  • Punctuation mark (約物(やくもの))
  • Punctuation (句読点(くとうてん))
例:
  • .