0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

sshでログイン(ローカル:windows,リモート:Linux,MacOS)

Last updated at Posted at 2023-01-03

sshサービス起動

Linux

sudo yum install openssh-server

sshのバージョン:

ssh -V

ipアドレス調べる:

ifconfig

inetの後ろの部分は「ipアドレス」

スクリーンショット 2023-01-03 122408.png

ssh ユーザー名@ipアドレス

### MacOS 「システム環境設定」→「共有」→「リモートログイン」をチェックする
「リモートログイン:オン」表示したら、下のコマンドでログインする可能。

参考:https://pc-karuma.net/mac-ssh-login/

windowsからsshでログイン

以下の三つの方法でログインする可能:

1,cmd
2,Putty
3,Tera Term

cmd

windowsのcmd(コマンド プロンプト)を開く

ssh ユーザー名@ipアドレス

公開鍵をリモートに送る(yesを入力):

スクリーンショット 2023-01-03 004513.png

Putty

ダウンロード:https://www.putty.org/
截屏2023-01-03 12.33.14.png


Host Nameにipアドレスを入力
Port:22
Connection type:SSH

スクリーンショット 2023-01-03 123412.png

ユーザー名とパスワードを入力する

スクリーンショット 2023-01-03 123931 (1).png

Tera Term

ホスト:ipアドレス
ポート:22
サービス:SSH

スクリーンショット 2023-01-03 123449.png
ユーザー名とパスワードを入力する

公開鍵

ホームディレクトリーの.ssh/know_hostsの中に、windowsシステムの公開鍵を見える。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?