---
title: "mac sshuttle 教程"
author: "xiaofengtoo"
date: "2017-11-14T14:01:44Z"
tags: []
categories: ["非技术"]
slug: "mac-sshuttle"
draft: false
lastmod: "2017-11-14T14:01:44Z"
id: 2399664
url: "https://xiaofengtoo.iteye.com/blog/2399664"
---

1、由于mac 和windows 都不能直接apt install install

 

```
git clone https://github.com/sshuttle/sshuttle.git
./setup.py install
```

其中老提示python 写入文件失败

 

修改成

 

```
sudo ./setup.py install
```

 2、链接远程服务器

```
sudo sshuttle -r username@sshserver 0.0.0.0/0-vv
```

 根据提示输入sshserver password 

 

发现ip 已经修改成sshserver

 

备注：

 

```
sudo sshuttle  --dns -vvr username@sshserver  0.0.0.0/0
```

 输入localhost password  , sshserver password