0
1

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.

docker(55) dockerでapt install sshで.sshができない

Last updated at Posted at 2019-08-12

X11でリモートのXをローカルで起動した時の✍
https://qiita.com/mgoldchild/items/39e3a090c1cdfa2d2469

に.ssh/configについて記述している。

apt install xorg ssh
などでx11とsshを入れた。
.sshファイル(フォルダ)は

# find / -name .ssh -print

ででてこない。

.ssh/configで検索

~/.ssh/configについて
https://qiita.com/passol78/items/2ad123e39efeb1a5286b

# mkdir ~/.ssh

そう。

# cd ~

が自分のルートディレクトリだ。

~/.ssh/configを分割して管理する
https://qiita.com/tumf/items/73e495e1274bc25acf5f

まだ肝心のconfigファイルができてない。

確認のため、ubuntuを再導入して確認。

macOS
$ docker run -p 8080:8080 -it ubuntu /bin/bash
docker/ubuntu
# apt update; apt -y upgrade
# apt install ssh wget vim sudo apt-utils curl
# cd ~
# ls -al
total 16
drwx------ 2 root root 4096 Jul 18 21:21 .
drwxr-xr-x 1 root root 4096 Aug 12 10:04 ..
-rw-r--r-- 1 root root 3106 Apr  9  2018 .bashrc
-rw-r--r-- 1 root root  148 Aug 17  2015 .profile

ssh config
https://qiita.com/ssm_snow/items/56584b97c88d52f512d0

え、自分で作るんだ。
bashは、.bashrc作ってくれるのに。

ssh config最強設定
https://qiita.com/keiya/items/dec9a1142ac701b19bd9

ssh config覚書
https://qiita.com/f0o0o/items/3fd3b00b515a1ebe427e

最後までおよみいただきありがとうございました。

いいね 💚、フォローをお願いします。

Thank you very much for reading to the last sentence.

Please press the like icon 💚 and follow me for your happy life.

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?