close

網路上找的文章 , 先透過 docker 安裝一個linux 

再透過  docker的 terminal 功能 login 到本機

真是聰明的方法

 

 

FWIW, this process worked for me:
 
1. install docker
 
2. start docker, go to 'image', select 'add' -> 'add from url'. in repository name put 'debian'. When asked for variant - pick pretty much any you want. I chose testing-slim
 
3. once (2) completes, click on the image and select 'launch'. not sure how relevant this is, but i gave my container administrative privileges.
 
4. go to 'container' tab. find newly created container. click 'details'. last tab is your terminal
 
5. execute: 'sudo apt-get update' followed by 'sudo apt-get install ssh tmux'
 
6. (optional) add your private ssh key by executing: "ssh-add - <<EOF", pasting your key and typing "EOF"
 
7. use SSH remote port forwarding while you ssh back to your machine, eg: ssh -R 1080:<router-ip>:80 username@machine-you-log-in-from
 
8. on machine you log in from (your actual computer you're sitting by) open web browser and navigate to port 1080.
 

 

 

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 阿貴貴 的頭像
    阿貴貴

    阿貴貴的亂七八糟雜談

    阿貴貴 發表在 痞客邦 留言(0) 人氣()