ssh 安装配置

ubuntu

安装

开启ubuntu上的ssh功能

先安装,安装后就自动开启了.

sudo apt-get install openssh-server

mac

1、启动sshd服务:

$ sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist

2、停止sshd服务:

$ sudo launchctl unload -w /System/Library/LaunchDaemons/ssh.plist

3、查看是否启动:

$ sudo launchctl list | grep ssh

如果看到下面的输出表示成功启动了:

 - 0  com.openssh.sshd

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×