最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

云原生教程之使用Docker部署webssh工具sshwifty

 更新時間:2023年03月06日 10:30:09   作者:江湖有緣  
Sshwifty是一個開源的WebSSH?&?WebTelnet客戶端,下面這篇文章主要給大家介紹了關(guān)于云原生教程之使用Docker部署webssh工具sshwifty的相關(guān)資料,文中通過實例代碼介紹的非常詳細,需要的朋友可以參考下

一、sshwifty介紹

1.sshwifty簡介

sshwifty是一款Web SSH & Telnet(WebSSH & WebTelnet 客戶端工具。

2.shwifty 特點

shwifty 是為 Web 設(shè)計的 SSH 和 Telnet 連接器。它可以部署在您的計算機或服務(wù)器上,為任何兼容(標準)的網(wǎng)絡(luò)瀏覽器提供 SSH 和 Telnet 訪問接口。

二、檢查本地docker環(huán)境

1.檢查docker版本

[root@jeven ~]# docker version
Client: Docker Engine - Community
 Version:           20.10.21
 API version:       1.41
 Go version:        go1.18.7
 Git commit:        baeda1f
 Built:             Tue Oct 25 18:04:24 2022
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.21
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.18.7
  Git commit:       3056208
  Built:            Tue Oct 25 18:02:38 2022
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.12
  GitCommit:        a05d175400b1145e5e6a735a6710579d181e7fb0
 runc:
  Version:          1.1.4
  GitCommit:        v1.1.4-0-g5fd4c4d
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

2.檢查docker狀態(tài)

[root@jeven ~]# systemctl status docker
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
   Active: active (running) since Sat 2022-12-10 02:07:56 CST; 1 day 16h ago
     Docs: https://docs.docker.com
 Main PID: 3200 (dockerd)
    Tasks: 51
   Memory: 2.2G
   CGroup: /system.slice/docker.service
           ├─ 3200 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
           ├─10894 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 8777 -container-ip 192.168.144.3 -container-port 80
           ├─10900 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 8777 -container-ip 192.168.144.3 -container-port 80
           ├─47983 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 8030 -container-ip 192.168.160.4 -container-port 8002
           ├─47989 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 8030 -container-ip 192.168.160.4 -container-port 8002
           ├─79289 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 8182 -container-ip 172.17.0.2 -container-port 8182
           └─79295 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 8182 -container-ip 172.17.0.2 -container-port 8182

Dec 10 17:59:26 jeven dockerd[3200]: time="2022-12-10T17:59:26.025354968+08:00" level=info msg="ignoring event" container=f12196399ec79af5...skDelete"
Dec 10 17:59:29 jeven dockerd[3200]: time="2022-12-10T17:59:29.686116328+08:00" level=info msg="ignoring event" container=f12196399ec79af5...skDelete"
Dec 10 18:23:34 jeven dockerd[3200]: time="2022-12-10T18:23:34.990641014+08:00" level=info msg="ignoring event" container=c663d02e84709140...skDelete"
Dec 10 18:26:49 jeven dockerd[3200]: time="2022-12-10T18:26:49.278375069+08:00" level=info msg="ignoring event" container=c261a231fd3a667e...skDelete"
Dec 10 18:30:06 jeven dockerd[3200]: time="2022-12-10T18:30:06.474584540+08:00" level=info msg="ignoring event" container=c030677ef4c374ce...skDelete"
Dec 10 18:56:18 jeven dockerd[3200]: time="2022-12-10T18:56:18.697839686+08:00" level=info msg="ignoring event" container=1dee36827375e093...skDelete"
Dec 10 21:38:37 jeven dockerd[3200]: time="2022-12-10T21:38:37.225136574+08:00" level=info msg="ignoring event" container=9eb379c6b627f271...skDelete"
Dec 11 11:25:12 jeven dockerd[3200]: time="2022-12-11T11:25:12.020544314+08:00" level=info msg="Attempting next endpoint for pull after er...er Error"
Dec 11 11:39:16 jeven dockerd[3200]: time="2022-12-11T11:39:16.374445047+08:00" level=info msg="Container failed to exit within 10s of sig...ee64e0fee
Dec 11 11:39:16 jeven dockerd[3200]: time="2022-12-11T11:39:16.417759049+08:00" level=info msg="ignoring event" container=a8ec136f38e4cfa8...skDelete"
Hint: Some lines were ellipsized, use -l to show in full.

三、下載sshwifty鏡像

[root@jeven ~]# docker pull  niruix/sshwifty:latest
latest: Pulling from niruix/sshwifty
59bf1c3509f3: Already exists 
eb8f919181be: Pull complete 
21facffd2b84: Pull complete 
ea1365dbf4a0: Pull complete 
latest: Pulling from niruix/sshwifty
213ec9aee27d: Already exists 
db074b00f828: Pull complete 
af1b674602a2: Pull complete 
5f786aa6e56f: Pull complete 
Digest: sha256:410a48bbce146d01ca7e5f20ff67e55dfdab5afbe46ae41ad696d659c6856670
Status: Downloaded newer image for niruix/sshwifty:latest
docker.io/niruix/sshwifty:latest

四、服務(wù)器生成憑證文件

[root@jeven ~]# openssl req   -newkey rsa:4096 -nodes -keyout domain.key -x509 -days 90 -out domain.crt
Generating a 4096 bit RSA private key
...........................................................................................................++
...++
writing new private key to 'domain.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [XX]:
State or Province Name (full name) []:
Locality Name (eg, city) [Default City]:
Organization Name (eg, company) [Default Company Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (eg, your name or your server's hostname) []:
Email Address []:

五、創(chuàng)建sshwifty容器

1.創(chuàng)建部署目錄

mkdir -p  /data/sshwifty

2.創(chuàng)建sshwifty容器

docker run --detach \
  --restart always \
  --publish 8182:8182 \
  --env SSHWIFTY_DOCKER_TLSCERT="$(cat domain.crt)" \
  --env SSHWIFTY_DOCKER_TLSCERTKEY="$(cat domain.key)" \
  --name sshwifty \
  niruix/sshwifty:latest

3.查看sshwifty容器狀態(tài)

[root@jeven ~]# docker ps
CONTAINER ID   IMAGE                    COMMAND                  CREATED        STATUS        PORTS                                       NAMES
d03202a5cce7   niruix/sshwifty:latest   "/sshwifty.sh"           8 hours ago    Up 8 hours    0.0.0.0:8182->8182/tcp, :::8182->8182/tcp   sshwifty

六、訪問sshwifty首頁

七、sshwifty的基本使用

1.進入連接選項界面

2.選擇ssh連接

填寫服務(wù)器IP地址等信息,選擇認證方式

3.認證信息配置

4.遠程ssh連接服務(wù)器

5.查看連接延遲狀態(tài)

總結(jié) 

到此這篇關(guān)于云原生教程之使用Docker部署webssh工具sshwifty的文章就介紹到這了,更多相關(guān)Docker部署webssh工具sshwifty內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

  • docker pull拉取超時的解決方案

    docker pull拉取超時的解決方案

    這篇文章主要介紹了docker pull拉取超時的解決方案,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧
    2021-03-03
  • Docker如何限制容器可用的內(nèi)存

    Docker如何限制容器可用的內(nèi)存

    容器的使用過程中,經(jīng)常需要對容器可以使用的主機資源進行限制,本文介紹如何限制容器可以使用的主機內(nèi)存,需要的朋友參考下吧
    2017-12-12
  • docker安裝nginx容器的方法

    docker安裝nginx容器的方法

    Nginx也是一款服務(wù)器,我們常用它做如:反向代理、負載均衡、動態(tài)與靜態(tài)資源的分離的工作,這篇文章主要介紹了docker安裝nginx,需要的朋友可以參考下
    2023-01-01
  • Docker刪除已存在的鏡像的實現(xiàn)

    Docker刪除已存在的鏡像的實現(xiàn)

    本文主要介紹了Docker刪除已存在的鏡像的實現(xiàn),刪除已存在的 Docker 鏡像,可以使用 docker rmi 命令,下面就來詳細的介紹一下使用步驟,感興趣的可以了解一下
    2023-08-08
  • Docker-Compose搭建Redis集群的實現(xiàn)教程

    Docker-Compose搭建Redis集群的實現(xiàn)教程

    本文主要介紹了Docker-Compose搭建Redis集群的實現(xiàn)教程,文中通過示例代碼介紹的非常詳細,對大家的學(xué)習或者工作具有一定的參考學(xué)習價值,需要的朋友們下面隨著小編來一起學(xué)習學(xué)習吧
    2023-03-03
  • 詳解docker-compose安裝minio

    詳解docker-compose安裝minio

    這篇文章主要介紹了docker-compose安裝minio的相關(guān)知識,本文給大家介紹的非常詳細,對大家的學(xué)習或工作具有一定的參考借鑒價值,需要的朋友可以參考下
    2023-07-07
  • 詳解如何將java項目打包成docker鏡像并且可運行

    詳解如何將java項目打包成docker鏡像并且可運行

    java?項目打包成?Docker?可運行的鏡像,其目的是便于運用docker容器來管理項目,文中的示例代碼講解詳細,感興趣的小伙伴可以了解一下
    2024-11-11
  • Docker制作MySQL鏡像并使用`/docker-entrypoint-initdb.d/`問題

    Docker制作MySQL鏡像并使用`/docker-entrypoint-initdb.d/`問題

    這篇文章主要介紹了Docker制作MySQL鏡像并使用`/docker-entrypoint-initdb.d/`問題,具有很好的參考價值,希望對大家有所幫助,如有錯誤或未考慮完全的地方,望不吝賜教
    2024-05-05
  • 最新評論

    凭祥市| 新和县| 论坛| 望奎县| 哈尔滨市| 彩票| 梅州市| 灌云县| 黔南| 开封县| 若羌县| 东至县| 边坝县| 博兴县| 日喀则市| 长泰县| 石景山区| 鄄城县| 张家界市| 武山县| 常熟市| 武陟县| 鹿泉市| 集安市| 宜昌市| 金川县| 漠河县| 天长市| 新乡市| 竹溪县| 蓬莱市| 黔西县| 景宁| 库尔勒市| 淳化县| 墨竹工卡县| 霍州市| 四子王旗| 芦溪县| 砀山县| 镇江市|