浅析学习Ubuntu ssh系统安装

系统 Linux
假如你启用了Ubuntu ssh服务,那么任何有有效帐号的用户都可以远程连接。这可能会导致一些安全问题,由于有一些远程密码破解工具可以尝试常见的用户名/密码.

ssh系统那个是经常运用操作的,我就研究了安装 Ubuntu ssh,在这里拿出来和大家分享一下,希望对大家有用。Ubuntu 包含了非常好的翻译和容易使用的架构,这些由自由软件社团将不断的提供, 将尽可能的使大多数人方便使用 Ubuntu 。Ubuntu ssh及其相关 。

安装 Ubuntu ssh(Secure Shell) 服务以提供远程管理服务

sudo apt-get install Ubuntu ssh
Ubuntu ssh 远程登入 Ubuntu 机
Ubuntu ssh username@192.168.0.1
将 文件/文件夹 从远程 Ubuntu 机拷至本地(scp)
scp -r username@192.168.0.1:/home/username/remotefile.txt .
将 文件/文件夹 从本地拷至远程 Ubuntu 机(scp)
scp -r localfile.txt username@192.168.0.1:/home/username/
将 文件/文件夹 从远程 Ubuntu 机拷至本地(rsync)
rsync -v -u -a --delete --rsh=ssh --stats username@192.168.0.1:/home/username/remotefile.txt .
将 文件/文件夹 从本地拷至远程 Ubuntu 机(rsync)
rsync -v -u -a --delete --rsh=ssh --stats localfile.txt username@192.168.0.1:/home/username/
在 Windows 机上用 Ubuntu ssh 远程登录 Ubuntu 机下载 PuTTY
如何在 Windows 机上拷贝 文件/文件夹 从/到 远程 Ubuntu 机下载 FileZilla

如何限制通过Ubuntu ssh远程连接的用户帐号

如,假如你启用了Ubuntu ssh服务,那么任何有有效帐号的用户都可以远程连接。这可能会导致一些安全问题,由于有一些远程密码破解工具可以尝试常见的用户名/密码
备份Ubuntu ssh服务的配置文件
sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.ORIGINAL

编辑配置文件

sudo gedit /etc/ssh/sshd_config
将参数 PermitRootLogin 由 yes 更改为 no。 超级用户不能直接通过远程联机。
添加参数 AllowUsers 设定远程连接的用户名 (用空格来分割) 。
您也可以使用 DenyUsers for fine-grained selection of users.
If you enable the open ssh server and you have no intention for now to enable remote connections, you may add AllowUsers nosuchuserhere to disable anyone connecting.
以上介绍Ubuntu ssh系统。

【编辑推荐】

  1. 概述论述Linux Ubuntu系统分区及基础知识
  2. 硬盘Ubuntu安装ISO系统
  3. 介绍Ubuntu SCIM安装输入
  4. 详细解说Ubuntu iso安装镜像文件
  5. 最新版本Ubuntu wine安装
责任编辑:佚名 来源: CSDN
相关推荐

2011-09-15 17:30:55

ubuntuSSH

2009-07-15 14:21:03

MyEclipse S

2009-12-29 12:50:24

Ubuntu root

2009-12-31 15:13:22

Ubuntu GNOM

2010-02-05 09:43:20

Ubuntu系统

2010-01-05 17:32:40

安装Ubuntu

2009-12-31 13:03:17

Ubuntu安装

2011-09-09 13:28:01

Ubuntussh

2010-05-25 10:11:06

ubuntu Grub

2009-12-30 16:19:33

2009-03-04 11:59:24

LinuxUbuntuJDK

2009-02-23 20:20:10

2010-01-07 14:43:05

Ubuntu jdk

2010-03-16 15:43:41

Ubuntu系统

2010-02-04 16:29:28

Ubuntu系统

2010-01-08 15:51:22

Ubuntu orac

2010-01-04 17:25:34

Ubuntu安装

2009-12-30 17:31:48

2010-01-07 15:29:58

Ubuntu nfs

2011-09-09 09:50:28

点赞
收藏

51CTO技术栈公众号