windows:openssh

文書の過去の版を表示しています。


Open Secure Shell

Scoop によるインストール
git, openssh のインストール

PS > scoop install git openssh
Installing 'git' (2.26.0.windows.1) [64bit]
Loading PortableGit-2.26.0-64-bit.7z.exe from cache
Checking hash of PortableGit-2.26.0-64-bit.7z.exe ... ok.
Extracting dl.7z ... done.
Linking ~\scoop\apps\git\current => ~\scoop\apps\git\2.26.0.windows.1
Creating shim for 'git'.
Creating shim for 'gitk'.
Creating shim for 'git-gui'.
Creating shim for 'tig'.
Creating shim for 'git-bash'.
Creating shortcut for Git Bash (git-bash.exe)
Creating shortcut for Git GUI (git-gui.exe)
Creating shortcut for gitk (gitk.exe)
Running post-install script...
'git' (2.26.0.windows.1) was installed successfully!
Installing 'openssh' (7.6p1) [64bit]
Loading gcc-libs-6.4.0-1-x86_64.pkg.tar.xz from cache
Checking hash of gcc-libs-6.4.0-1-x86_64.pkg.tar.xz ... ok.
Loading heimdal-1.5.3-9-x86_64.pkg.tar.xz from cache
Checking hash of heimdal-1.5.3-9-x86_64.pkg.tar.xz ... ok.
Loading heimdal-libs-1.5.3-9-x86_64.pkg.tar.xz from cache
Checking hash of heimdal-libs-1.5.3-9-x86_64.pkg.tar.xz ... ok.
Loading icu-59.1-1-x86_64.pkg.tar.xz from cache
Checking hash of icu-59.1-1-x86_64.pkg.tar.xz ... ok.
Loading libcrypt-2.1-1-x86_64.pkg.tar.xz from cache
Checking hash of libcrypt-2.1-1-x86_64.pkg.tar.xz ... ok.
Loading libdb-5.3.28-2-x86_64.pkg.tar.xz from cache
Checking hash of libdb-5.3.28-2-x86_64.pkg.tar.xz ... ok.
Loading libedit-3.1-20170329-x86_64.pkg.tar.xz from cache
Checking hash of libedit-3.1-20170329-x86_64.pkg.tar.xz ... ok.
Loading libopenssl-1.0.2.m-1-x86_64.pkg.tar.xz from cache
Checking hash of libopenssl-1.0.2.m-1-x86_64.pkg.tar.xz ... ok.
Loading libreadline-7.0.003-1-x86_64.pkg.tar.xz from cache
Checking hash of libreadline-7.0.003-1-x86_64.pkg.tar.xz ... ok.
Loading libsqlite-3.19.3.0-2-x86_64.pkg.tar.xz from cache
Checking hash of libsqlite-3.19.3.0-2-x86_64.pkg.tar.xz ... ok.
Loading msys2-runtime-2.9.0-2-x86_64.pkg.tar.xz from cache
Checking hash of msys2-runtime-2.9.0-2-x86_64.pkg.tar.xz ... ok.
Loading ncurses-6.0.20170708-2-x86_64.pkg.tar.xz from cache
Checking hash of ncurses-6.0.20170708-2-x86_64.pkg.tar.xz ... ok.
Loading openssh-7.6p1-1-x86_64.pkg.tar.xz from cache
Checking hash of openssh-7.6p1-1-x86_64.pkg.tar.xz ... ok.
Loading zlib-1.2.11-1-x86_64.pkg.tar.xz from cache
Checking hash of zlib-1.2.11-1-x86_64.pkg.tar.xz ... ok.
Loading bash-4.4.012-1-x86_64.pkg.tar.xz from cache
Checking hash of bash-4.4.012-1-x86_64.pkg.tar.xz ... ok.
Extracting gcc-libs-6.4.0-1-x86_64.pkg.tar.xz ... done.
Extracting heimdal-1.5.3-9-x86_64.pkg.tar.xz ... done.
Extracting heimdal-libs-1.5.3-9-x86_64.pkg.tar.xz ... done.
Extracting icu-59.1-1-x86_64.pkg.tar.xz ... done.
Extracting libcrypt-2.1-1-x86_64.pkg.tar.xz ... done.
Extracting libdb-5.3.28-2-x86_64.pkg.tar.xz ... done.
Extracting libedit-3.1-20170329-x86_64.pkg.tar.xz ... done.
Extracting libopenssl-1.0.2.m-1-x86_64.pkg.tar.xz ... done.
Extracting libreadline-7.0.003-1-x86_64.pkg.tar.xz ... done.
Extracting libsqlite-3.19.3.0-2-x86_64.pkg.tar.xz ... done.
Extracting msys2-runtime-2.9.0-2-x86_64.pkg.tar.xz ... done.
Extracting ncurses-6.0.20170708-2-x86_64.pkg.tar.xz ... done.
Extracting openssh-7.6p1-1-x86_64.pkg.tar.xz ... done.
Extracting zlib-1.2.11-1-x86_64.pkg.tar.xz ... done.
Extracting bash-4.4.012-1-x86_64.pkg.tar.xz ... done.
Running pre-install script...


    Directory: C:\Users\tomoyan\scoop\apps\openssh\7.6p1

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----          2020/04/01     6:26                tmp
d----          2020/04/01     6:26                home

    Directory: C:\Users\tomoyan\scoop\apps\openssh\7.6p1\home

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----          2020/04/01     6:26                tomoyan

    Directory: C:\Users\tomoyan

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----          2019/08/14    16:03                .ssh
C:\Users\tomoyan\scoop\apps\openssh\7.6p1\home\tomoyan\.ssh <<===>> C:\Users\tomoyan\.ssh のジャンクションが作成されました
Linking ~\scoop\apps\openssh\current => ~\scoop\apps\openssh\7.6p1
Creating shim for 'findssl.sh'.
Creating shim for 'scp'.
Creating shim for 'sftp'.
Creating shim for 'ssh'.
Creating shim for 'ssh-add'.
Creating shim for 'ssh-agent'.
Creating shim for 'ssh-copy-id'.
Creating shim for 'ssh-keygen'.
Creating shim for 'ssh-keyscan'.
Creating shim for 'sshd'.
'openssh' (7.6p1) was installed successfully!

pshazz のインストール

PS > scoop install pshazz
Installing 'pshazz' (0.2019.08.07) [64bit]
Downloading https://github.com/lukesampson/pshazz/archive/30609306103dd2988353e44596c6093c688b0ea5.zip (-1 B)...

Checking hash of 30609306103dd2988353e44596c6093c688b0ea5.zip ... ok.
Extracting 30609306103dd2988353e44596c6093c688b0ea5.zip ... done.
Adding pshazz to your powershell profile.

           _                   _
 _ __  ___| |__   __ _ _______| |
| '_ \/ __| '_ \ / _` |_  /_  / |
| |_) \__ \ | | | (_| |/ / / /|_|
| .__/|___/_| |_|\__,_/___/___(_)
|_|

The ssh-agent service is disabled. Please enable the service and try again.
You can enable it by running 'Set-Service ssh-agent -StartupType Manual'
Your PowerShell is now powered by pshazz!
Linking ~\scoop\apps\pshazz\current => ~\scoop\apps\pshazz\0.2019.08.07
Creating shim for 'pshazz'.
'pshazz' (0.2019.08.07) was installed successfully!

RSA 4096 bit の場合

PS > cd ~
PS > ssh-keygen -t rsa -b 4096 -f .ssh\id_rsa_tomoyan-2020 -C "Monster's Garage Co.,Ltd. TomoYan RSA"
Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in .ssh\id_rsa_tomoyan-2020.
Your public key has been saved in .ssh\id_rsa_tomoyan-2020.pub.
The key fingerprint is:
SHA256:H7Uqk4RsQzVbkkcGjg93H9gTFcYkoIKfOWbyeNzM69g Monster's Garage Co.,Ltd. TomoYan RSA
The key's randomart image is:
+---[RSA 4096]----+
|        =+=.o+=. |
|     . +.B.o +.  |
|    . = =.o =    |
|     + O . o +   |
|    . % S . o    |
|     O B o o     |
|    . + B o      |
|     . o +       |
|      ..E        |
+----[SHA256]-----+

ECDSA 521 bit の場合

PS > cd ~
PS > ssh-keygen -t ecdsa -b 521 -f .ssh\id_ecdsa_tomoyan-2020 -C "Monster's Garage Co.,Ltd. TomoYan ECDSA"
Generating public/private ecdsa key pair.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in .ssh\id_ecdsa_tomoyan-2020.
Your public key has been saved in .ssh\id_ecdsa_tomoyan-2020.pub.
The key fingerprint is:
SHA256:UsCHI8qiuNFymE3RSFOC1UyYTwxG+8fyUEtzvgxoIAg Monster's Garage Co.,Ltd. TomoYan ECDSA
The key's randomart image is:
+---[ECDSA 521]---+
|E=O%o...         |
|+.=+B +..        |
|o.o= .+oo        |
|..+o.= *         |
|oB  * * S        |
|B +. = + .       |
| =    . o        |
|.                |
|                 |
+----[SHA256]-----+
  • windows/openssh.1589664182.txt.gz
  • 最終更新: 2020/05/17 06:23
  • by tomoyan 作成