ssh [option] hostname [cmd]
ssh : Secure Shell Protocol 、network protocolの中の一つで、
computer to computer のように ネットのようなpublic networkを通じてお互いに通信をする時
セキュリティー的に安全のため使うprotocol。
1.データ転送
2.遠隔制御
SSH Client -> SSH Protocol <= SSH Server
option | コマンド内容 |
---|---|
-i | 秘密鍵ファイル(identity ファイル指定) |
-l | ログインユーザ名を指定 |
-p | ポート番号を指定 |
-x | X11の転送を有効化 |
-1 | SSHのprotocol version1を使用 |
-2 | SSHのprotocol version2を使用 |
-4 | IPv4を使用 |
◆ls : folder/fileの一覧を表示
◆cd : folderの場所を移動
◆pwd : 現在のfolder位置を表示
◆cp : folder/file copy
◆mv : move
◆rm : remove
◆mkdir : make directory? folderを作成