ubuntu 开启远程连接 ssh
来源:互联网 发布:商家给淘宝开具什么 编辑:程序博客网 时间:2024/05/22 05:20
Source :http://ubuntuhandbook.org/index.php/2014/09/enable-ssh-in-ubuntu-14-10-server-desktop/
Secure Shell (SSH) is a protocol for securely accessing remote machine, it allows you to run command line and graphical programs, transfer files, and even create secure virtual private networks over the Internet.
Ubuntu does not provide the ssh service out-of-the-box. But you can easily enable it by installing the OpenSSH server package.
To enable SSH:
Search for and install the openssh-server package from Ubuntu Software Center. Or run command below in console if you’re on Ubuntu Server without GUI:
sudo apt-get install openssh-server
Once installed, the SSH service should be started automatically. If necessary, you can start (or stop, restart) the service manually via command:
sudo service ssh start
To edit settings:
To change the port, root login permission, you may edit the/etc/ssh/sshd_config file via:
sudo nano /etc/ssh/sshd_config
After you changed the configurations, press Ctrl+X followed by typing y and hitting enter to save the file.
Finally restart the SSH service to apply the changes:
sudo service ssh restart
Usage and Tips:
1. Normally, we can access remote machine through SSH via command:
ssh username@remote-ip
For the port that is not the default 22:
ssh username@remote-ip -p NUMBER
2. For desktop Ubuntu, root user need to be enabled first so that remote machines can SSH to it via root:
Run command below to set a password for root:
sudo passwd root
Then execute command to unlock the root account:
sudo passwd -u root
Edit the config file /etc/ssh/sshd_config, change the line
PermitRootLogin without-password
into:
PermitRootLogin yes
When done, restart the SSH service.
- ubuntu 开启远程连接 ssh
- suse12 开启ssh 远程连接
- Ubuntu Linux 开启远程ssh
- ssh远程连接ubuntu
- ssh远程连接Ubuntu
- CentOS-6.9 开启SSH远程连接
- 树莓派开启ssh远程连接服务
- Ubuntu下SSH远程连接
- ubuntu 下ssh远程连接
- ubuntu配置SSH远程连接
- ubuntu开启root用户ssh远程登录
- ubuntu开启root用户ssh远程登录
- ubuntu开启SSH服务远程登录
- Ubuntu 开启 SSH服务,并实现远程windows 主机 SecureCRT连接
- ubuntu开启ssh服务让crt能远程通过22端口连接系统
- ssh远程连接桌面版ubuntu,连接经验
- 使用ssh远程连接Linux服务器开启ssh命令
- ubuntu开启SSH服务和允许root远程SSH登录
- [BI项目记]-搭建代码管理环境之云端
- LeetCode_6---ZigZag Conversion
- 十七、Python SQLAlchemy
- java.util.List中subList方法
- 网站接入银联网上支付(B2B)
- ubuntu 开启远程连接 ssh
- 前端MVVM框架avalon学习笔记
- c++回调函数
- [BI项目记]-文档版本管理笔记
- 我在整合yii 和 cas的时候遇到的事!
- 自定义带动画的不规则分段显示进度条
- 每日一题C 2015-6-1 17:09
- 动态库,静态库
- Android新增C/C++语言支持:应用开发更快