avatar
Articles
120
Tags
227
Categories
7

Home
Categories
Posts
Books
Movies
About
靖轩
Search
Home
Categories
Posts
Books
Movies
About
CentOS的免密登录
Created2019-07-20|SystemLinux
实现CentOS的免密登录还是挺简单的。 密钥的产生 ssh-keygen -t rsa 在用户家目录下的.ssh目录下产生id_rsa和id_rsa.pub两个密钥文件。其中,.pub为公钥。 公钥的上传 ssh-copy-id -i ~/.ssh/id_rsa.pub root@target_IP 使用ssh-copy-id来实现自动的上传、修改配置。 增加主机配置文件 vim ~/.ssh/config ———————————————————— Host target0 //主机名称 Hostname 192.168.174.148 //主机IP或解析记录 Port 22 //SSH端口号 User root //SSH用户名 Host target1 Hostname 192.168.174.149 Port 22 User root ———————————————————— 测试 [root@ansible_server ~]# ssh target0 Last login: Fri Dec 20 14:59:11 2019 from ...
内网搭建KMS服务器
Created2019-06-14|System
在局域网环境中,我们可以使用开源的KMS服务来实现Windows系统和Office软件的激活工作。下面我们将在CentOS8之上来部署实施相关服务。 环境部署yum install -y epel-release git yum update -y yum install -y supervisord systemctl enable supervisord --now firewall-cmd --permanent --add-port=1688/tcp firewall-cmd --reload 拉取代码cd /opt git clone https://github.com/SystemRage/py-kms.git cat> /etc/supervisord.d/kms.ini <<EOF [program:kms] # command=python /opt/py-kms/py-kms/pykms_Server.py //注意python的版本 command=python3 /opt/py-kms/py-kms/pykms_Server.py ...
使用Xshell免费版远程调用图形界面
Created2019-04-20|System
使用Xshell套装可以通过Xshell调用Xmanager来实现Linux图形界面的ssh转发,从而实现Linux的GUI界面的远程调用。但对于使用edu账号申请下来的免费版Xshell就没有这个功能了。那么,我们就需要使用xshell+xming来实现类似功能。 SSHD配置# 要打开SSH服务的X11转发功能 sed -i "s/#X11Forwarding yes/X11Forwarding yes/g" sed -i "s/#X11DisplayOffset 10/X11DisplayOffset 10/g" sed -i "s/#X11UseLocalhost yes/X11UseLocalhost yes/g" 安装Xming我们下载好[1]之后,执行安装。需要配置的只有两项: 取消安装自带的putty 指定接受的端口10 配置Xshell在xshell中配置客户端,在”SSH”-“隧道”中选择”转发x11连接到:’XDisplay:localhost:10.0’” 测试在本地xshell客户端上调用远程GUI程序,比如gparted.
1…1314
avatar
靖轩
逝者如斯夫,不舍昼夜
Articles
120
Tags
227
Categories
7
Follow Me
Recent Post
运维困境与破解之道2023-09-01
社会工程概论2023-08-01
VMware虚机通过宿主机的Clash访问外部站点2023-07-31
再访基辅号2023-07-21
Kubernetes基本管理2023-07-19
Tags
VLC System Roadmap disk netcard Kernel write Ansible tomcat Android windows mapreduce Sysadmin tips vmdk MindMap VirtualMachine cdh5 Thinkpad 北京 WSUS xming 旅游 lvs security winget antivirus dnsmasq monitor clash E-mail Winbind sysadmin vSphere 阿里云 Security - Docker CVE Bluetooth - Windows Tools wordpress Tech
Archives
  • September 20231
  • August 20231
  • July 20234
  • June 20234
  • May 20234
  • April 20234
  • March 20234
  • February 20233
Info
Article :
120
Total Count :
200.5k
UV :
PV :
Last Push :
©2020 - 2023 By 靖轩
京ICP备17034757号-1
Search
Loading the Database