当前位置: 首页 > Linux

Linux基础小结-运维

时间:2023-04-06 21:18:55 Linux

服务器安装SSH服务安装SSHyuminstallopenssh-server启动SSHservicesshdstartSetBootrunchkconfigsshdon如果你安装的是最小服务器系统,默认安装ssh服务。具有GUI的Linux系统没有安装ssh。客户端安装ssh工具Windows系统可以安装Xshell、Putty、secureCRTLinux平台安装客户端软件yuminstallopenssh-clientsssh命令链接服务器sshroot@192.168.3.12SSHconfig说明Config存放在~/.ssh/configconfig配置语法SSHconfig语法关键字HostAliasHostNamePortUserUsernameIdentityFile密钥文件路径touchconfig创建一个config文件,防止22端口通过vim/etc/ssh/sshd_config开放10000端口,自己改就行了。servicesshdrestartLinux常用命令软件运行命令包管理器:yum安装软件:yuminstallxxx卸载软件:yumremovexxx搜索软件:yumserachxxxcleancache:yumcleanpackageslistinstalled:yumlist包信息:yuminfoxxx服务器硬件资源和磁盘操作检查内存:free-mharddisk:df-hload:w/toptop命令通过q退出