---
title: "红旗linux配置ssh"
author: "jwfdp"
date: "2014-01-08T16:01:29Z"
tags: []
categories: ["行业应用"]
slug: "linux-ssh"
draft: false
lastmod: "2014-01-08T16:01:29Z"
id: 2001358
url: "https://jwfdp.iteye.com/blog/2001358"
---

工作需要，弄了个[Redflag Asianux Workstation 3.0](http://www.redflag-linux.com/d/iso/383.html "Redflag Asianux Workstation 3.0 for x86_64") 。装完后看到自动打开的doc文档，才知道是中，日，韩三国公司的跨国合作linux版本，原文我就不记得了。

          安装很友好。需要开启ssh远程访问。默认是没有启动ssh的，要启动ssh,shell下如下：

        

Java代码  [![收藏代码](http://exceljava.iteye.com/images/icon_star.png)]()

1. /etc/init.d/sshd restart

 

  或者

  

Java代码  [![收藏代码](http://exceljava.iteye.com/images/icon_star.png)]()

1. service sshd restart

 

如果要使root账户可以通过ssh登陆，还要更改sshd\_config的配置。

Java代码  [![收藏代码](http://exceljava.iteye.com/images/icon_star.png)]()

1. vi /etc/ssh/sshd\_config

 把PermitRootLogin no改为yes

Java代码  [![收藏代码](http://exceljava.iteye.com/images/icon_star.png)]()

1. source .bash\_profile