no way to compare when less than two revisions
差分
このページの2つのバージョン間の差分を表示します。
次のリビジョン | |||
— | windows:openssh [2020/05/17 06:23] – tomoyan 作成 | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | < | ||
+ | < | ||
+ | #result pre { | ||
+ | overflow: scroll; | ||
+ | overflow-x: hidden; | ||
+ | font-size: 10px; | ||
+ | } | ||
+ | # | ||
+ | height: 300px; | ||
+ | overflow: scroll; | ||
+ | overflow-x: hidden; | ||
+ | font-size: 10px; | ||
+ | } | ||
+ | </ | ||
+ | </ | ||
+ | ====== Open Secure Shell ====== | ||
+ | |||
+ | ===== インストール ===== | ||
+ | [[windows: | ||
+ | git, openssh のインストール\\ | ||
+ | <code powershell> | ||
+ | PS > scoop install git openssh | ||
+ | </ | ||
+ | <WRAP prewrap 100% # | ||
+ | < | ||
+ | Installing ' | ||
+ | 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 ' | ||
+ | Creating shim for ' | ||
+ | Creating shim for ' | ||
+ | Creating shim for ' | ||
+ | Creating shim for ' | ||
+ | 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... | ||
+ | ' | ||
+ | Installing ' | ||
+ | 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: | ||
+ | |||
+ | Mode | ||
+ | ---- | ||
+ | d---- 2020/ | ||
+ | d---- 2020/ | ||
+ | |||
+ | Directory: C: | ||
+ | |||
+ | Mode | ||
+ | ---- | ||
+ | d---- 2020/ | ||
+ | |||
+ | Directory: C: | ||
+ | |||
+ | Mode | ||
+ | ---- | ||
+ | d---- 2019/ | ||
+ | C: | ||
+ | Linking ~\scoop\apps\openssh\current => ~\scoop\apps\openssh\7.6p1 | ||
+ | Creating shim for ' | ||
+ | Creating shim for ' | ||
+ | Creating shim for ' | ||
+ | Creating shim for ' | ||
+ | Creating shim for ' | ||
+ | Creating shim for ' | ||
+ | Creating shim for ' | ||
+ | Creating shim for ' | ||
+ | Creating shim for ' | ||
+ | Creating shim for ' | ||
+ | ' | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | pshazz のインストール\\ | ||
+ | <code powershell> | ||
+ | PS > scoop install pshazz | ||
+ | </ | ||
+ | <WRAP prewrap 100% # | ||
+ | < | ||
+ | Installing ' | ||
+ | Downloading https:// | ||
+ | |||
+ | 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 ' | ||
+ | Your PowerShell is now powered by pshazz! | ||
+ | Linking ~\scoop\apps\pshazz\current => ~\scoop\apps\pshazz\0.2019.08.07 | ||
+ | Creating shim for ' | ||
+ | ' | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== 公開/ | ||
+ | RSA 4096 bit の場合\\ | ||
+ | <WRAP prewrap 100%> | ||
+ | <code powershell> | ||
+ | PS > cd ~ | ||
+ | PS > ssh-keygen -t rsa -b 4096 -f .ssh\id_rsa_tomoyan-2020 -C " | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
+ | < | ||
+ | Generating public/ | ||
+ | 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: | ||
+ | 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 の場合\\ | ||
+ | <WRAP prewrap 100%> | ||
+ | <code powershell> | ||
+ | PS > cd ~ | ||
+ | PS > ssh-keygen -t ecdsa -b 521 -f .ssh\id_ecdsa_tomoyan-2020 -C " | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
+ | < | ||
+ | Generating public/ | ||
+ | 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: | ||
+ | The key's randomart image is: | ||
+ | +---[ECDSA 521]---+ | ||
+ | |E=O%o... | ||
+ | |+.=+B +.. | | ||
+ | |o.o= .+oo | | ||
+ | |..+o.= * | | ||
+ | |oB * * S | | ||
+ | |B +. = + . | | ||
+ | | = . o | | ||
+ | |. | | ||
+ | | | | ||
+ | +----[SHA256]-----+ | ||
+ | </ | ||
+ | </ | ||