$SSHAuthentication
SSH関連の関数のデフォルトの認証オプションを指定する.
詳細
- $SSHAuthenticationのデフォルト設定は<||>である.
- $SSHAuthenticationは次のキーの連想に設定できる.
-
"Username" 認証に使うユーザ名 "Password" 認証に使うパスワード "SSHKey" SSH ID "SSHKeyPassword" "SSHKey"を復号化するために使うパスフレーズ文字列 - SSH IDは"SSHKey"->File[ident]の形で与えることができる.ident はSSHの秘密鍵を含むファイルである.これは,"SSHKey"->"string"として与えることもできる.文字列はSSHの秘密鍵である.
- "SSHKey"と"SSHKeyPassword"は,追加的にIDとパスワードのリストも受け付ける.
- Authentication:>$SSHAuthenticationは,RemoteFile,RemoteConnect,RemoteRun,RemoteRunProcess等の関数のデフォルト設定である.
例題
すべて開く すべて閉じる例 (3)
$SSHAuthenticationユーザ名とパスワードを使用するように$SSHAuthenticationを設定する:
$SSHAuthentication = <|"Username" -> "user", "Password" -> "password"|>上で設定した情報を使ってリモートホストでプロセスを実行する:
RemoteRunProcess["host.example.com", "pwd"]IDファイルに接続するように$SSHAuthenticationを設定する:
$SSHAuthentication = <|"Username" -> "user", "SSHKey" -> File["/path/.ssh/id_rsa"], "SSHKeyPassword" -> "example key password"|>remote = RemoteConnect["host.example.com"]DeleteObject[remote]スコープ (1)
$SSHAuthenticationがクリアであることを確かめる:
$SSHAuthentication = <||>RemoteConnect["host.example.com"]特性と関係 (1)
多くのリモート関数のAuthenticationオプションは,デフォルトで$SSHAuthenticationになっている:
Options[RemoteConnect]関連するガイド
-
▪
- 外部プログラムの呼出し ▪
- ファイル ▪
- ファイル操作
テキスト
Wolfram Research (2019), $SSHAuthentication, Wolfram言語関数, https://reference.wolfram.com/language/ref/$SSHAuthentication.html.
CMS
Wolfram Language. 2019. "$SSHAuthentication." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$SSHAuthentication.html.
APA
Wolfram Language. (2019). $SSHAuthentication. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$SSHAuthentication.html
BibTeX
@misc{reference.wolfram_2026_$sshauthentication, author="Wolfram Research", title="{$SSHAuthentication}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/$SSHAuthentication.html}", note=[Accessed: 14-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_$sshauthentication, organization={Wolfram Research}, title={$SSHAuthentication}, year={2019}, url={https://reference.wolfram.com/language/ref/$SSHAuthentication.html}, note=[Accessed: 14-August-2026]}