---
title: "linux常用命令收集"
author: "theseus"
date: "2018-05-10T11:19:12Z"
tags: []
categories: ["操作系统"]
slug: "linux"
draft: false
lastmod: "2019-12-29T20:14:18Z"
id: 2308758
url: "https://theseus.iteye.com/blog/2308758"
---

ssh安装:yum install openssh-server
netstat安装:  yum install net-tools

开机启动设置
ssh chkconfig  sshd on
centos7 systemctl enable sshd

用户获取sudo权限
a)usermod -a -G wheel 用户名
b)vi /etc/sudoers

## Same thing without a password
%wheel  ALL=(ALL)       NOPASSWD: ALL
cos4    ALL=(ALL)       NOPASSWD: ALL

SecureCRT连接修改
/etc/sshd/sshd_config  UseDNS=no