Skip to content

ubuntu_windows_remote_ctl

jiayangyang edited this page Nov 2, 2018 · 15 revisions

ubuntu/windows 远程、多机开发配置

一、ssh-server/sshfs (ubuntu)

参考:
https://help.ubuntu.com/lts/serverguide/openssh-server.html.en”
https://www.jianshu.com/p/b3db78fdd745”

1、服务器

install

sudo apt-get install openssh-server

config:

sudo vim /etc/ssh/sshd_config

打开这个配置文件后,找到配置项PermitRootLogin,当前的设置是prohibit-password。 PermitRootLogin prohibit-password
修改一下,设置为允许root身份以密码登录。

PermitRootLogin yes
#PermitRootLogin prohibit-password (这行保留,仅仅只是注释掉)

修改完成后,重启ssh服务生效。

sudo /etc/init.d/ssh restart  
>ps -e | grep ssh  

查看ssh-server是否启动

2、客户端

install

sudo apt-get install sshfs fuse

config:

sudo groupadd fuse  
sudo gpasswd -a "$USER" fuse  
mkdir ~/remote_folder  
sshfs -o idmap=user username@ip.address:/remote/file/system/ ~/remote_folder

输入远程用户密码,登录成功后远程文件系统就会被挂载到之前创建的 ~/remote_folder 目录。
卸载

sudo umount ~/remote_folder

这个命令会断开远程连接同时清空 remote_folder 目录。

二、Xshell (windows)

三、Filzila

四、MobaXterm (windows)

Clone this wiki locally