bash script.one click install powershell on linux, modify sshd_config for PsRemote.
One-click one key install powershell linux 一键 安装 debian ubuntu centos alpine
SaltStack是python开发的,c/s架构的批量运维工具。它的被控机agent,在2020年5月份被发现了,远程执行命令漏洞。详见cve-2020-11651 cve-2020-11652。
《卡死你3000》和ansible永远没有类似的漏洞!《卡死你3000》中,开端口监听的agent是: linux的open-sshd
对于kasini3000的linux被控机,不启动进程,不监听端口。sshd认证过你的ssh-key-file后才会拉起pwsh。linux被控机、linux堡垒机,安全无忧。
kasini3000不用密码登录,只用rsa4096的key登录。独创的双key-file登录机制,让你可以随时更新-更换一个key。
MIT LICENSE
原则上,只会增加,至少维护期为3年的,lts版,服务器版linux,的一键安装脚本。
应该有一定的用户群,最好不是衍生版linux。
卡死你3000 官方技术支持群 qq群:700816263
问:如何高速下载Powershell的二进制文件?
答: 感谢【powershell鼓吹士】分享
https://hub.fastgit.xyz/PowerShell/PowerShell/releases
阿里云新加坡:
https://github.com.cnpmjs.org/PowerShell/PowerShell/releases
上海交通大学镜像站缓存了github powershell的release
https://mirrors.sjtug.sjtu.edu.cn/github/Powershell
某第三方:
https://github.wuyanzheshui.workers.dev/PowerShell/PowerShell/releases
答:
yum: yum update powershell
dnf:dnf update powershell
apt:apt install powershell
arm,alpine :需要去github下载新版的tar包,重新解压。基本上就是删除旧的,下载,解压,新的。
yum安装特定版本:
yum install -y powershell-7.2.9
apt安装特定版本:
1 用apt-cache madison powershell列出。
2 apt install powershell=7.2.10-1.deb
以达到脱离互联网安装,不受外国限制的目的。
问:如何离线安装linux版powershell?
问:离线安装linux版powershell有何缺点?
答:
linux被控机内的powershell,没有安装微软源(/etc/yum.repos.d/microsoft.repo),和证书。无法通过yum update,dnf update来升级powershell。 只能通过在主控机,解压并存放新版本的安装文件,重新离线安装,来升级。
一般来讲,需要在主控机,每年左右升级1次powershell。 被控机powershell7.2已经很稳定了,基本上可以2年升级一次。所以说这个缺点并不会让你难受。
问:离线安装linux版powershell有何好处?
答: 不分发行版。不用rpm包,或deb包。因为从主控机,到被控机,直接复制的是:解压出来的目录文件。
问:卡死你3000,依赖哪些powershell版本? 答:
powershell版本需求:
您应该使用,超越稳定版本的powershell,以便减少卡死你3000,产生错误的几率。
1 powershell v6的最新版本,即6.2.7 从2023年1月1日起,卡死你3000不再支持powershell v6.x
2 powershell v7.0的最新版本,即7.0.12 不建议使用。从2024年1月1日起,不再支持。
3 powershell v7.1的最新版本,即7.1.7 不建议使用。从2024年1月1日起,不再支持。
4 powershell v7.2的最新版本,即7.2.18 支持,并建议使用。从2022年5月1日起,或powershellv7.2.6起,卡死你3000开始支持powershell v7.2
5 powershell v7.3的最新版本,即7.3.11 支持,并建议使用。
6 powershell v7.4的最新版本,即7.4.1 支持,并建议使用。正在抓紧测试兼容性。
7 powershell preview最新版。不建议使用,欢迎高手测试并向官方群反馈bug。
测试时间:2022-11-23-----2023-11-23
注意:powershell v7.3 不再支持在win7,win2008r2被控机上运行。
curl -L https://gitee.com/chuanjiao10/kasini3000_agent_linux/raw/master/centos7_install_powershell.bash | /usr/bin/bash
此脚本将开启linux被控机的,ssh的, root + 密码登录。这是为了自动推送ssh公钥到'/root/.ssh/authorized_keys'。 在首次运行krun时,krun调用 [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] ,将从[ nodelist.csv ] 读取linux node的 ip,port,root,pwd 。 为了linux被控机安全,建议推送ssh公钥后,手动运行下列命令,关闭root+密码登录。
script will enable root account and password login on linux node by ssh. "root" account and himself password,is used to push ssh pub key to '/root/.ssh/authorized_keys'. [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] will read linux node ip,port,root,pwd in [ nodelist.csv ] when krun first run.
For the security of the linux node, it is recommended to manually run the following command after pushing the SSH public key to close the root + password login. to disable root + password login,you must run 【zkj_gb关闭linux被控机root密码登录z.ps1 -nodeip 1.1.1.1】 at the kasini3000 master.
or
pwsh -f /your_path/ssh_root_passwd_login_on.ps1
pwsh -f /your_path/ssh_root_passwd_login_off.ps1
在alma-linux9,rocky-linux9,oracle-linux9,rhel9,上安装powershell v7.3:
curl -L https://gitee.com/chuanjiao10/kasini3000_agent_linux/raw/master/rhel9_install_powershell.bash | /usr/bin/bash
此脚本将开启linux被控机的,ssh的, root + 密码登录。这是为了自动推送ssh公钥到'/root/.ssh/authorized_keys'。 在首次运行krun时,krun调用 [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] ,将从[ nodelist.csv ] 读取linux node的 ip,port,root,pwd 。 为了linux被控机安全,建议推送ssh公钥后,手动运行下列命令,关闭root+密码登录。
script will enable root account and password login on linux node by ssh. "root" account and himself password,is used to push ssh pub key to '/root/.ssh/authorized_keys'. [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] will read linux node ip,port,root,pwd in [ nodelist.csv ] when krun first run.
For the security of the linux node, it is recommended to manually run the following command after pushing the SSH public key to close the root + password login. to disable root + password login,you must run 【zkj_gb关闭linux被控机root密码登录z.ps1 -nodeip 1.1.1.1】 at the kasini3000 master.
or
pwsh -f /your_path/ssh_root_passwd_login_on.ps1
pwsh -f /your_path/ssh_root_passwd_login_off.ps1
官网:https://aws.amazon.com/cn/amazon-linux-2/
下载:https://cdn.amazonlinux.com/os-images/latest/
curl -L https://gitee.com/chuanjiao10/kasini3000_agent_linux/raw/master/amazon_linux2_install_powershell.bash | /usr/bin/bash
此脚本将开启linux被控机的,ssh的, root + 密码登录。这是为了自动推送ssh公钥到'/root/.ssh/authorized_keys'。 在首次运行krun时,krun调用 [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] ,将从[ nodelist.csv ] 读取linux node的 ip,port,root,pwd 。 为了linux被控机安全,建议推送ssh公钥后,手动运行下列命令,关闭root+密码登录。
script will enable root account and password login on linux node by ssh. "root" account and himself password,is used to push ssh pub key to '/root/.ssh/authorized_keys'. [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] will read linux node ip,port,root,pwd in [ nodelist.csv ] when krun first run.
For the security of the linux node, it is recommended to manually run the following command after pushing the SSH public key to close the root + password login. to disable root + password login,you must run 【zkj_gb关闭linux被控机root密码登录z.ps1 -nodeip 1.1.1.1】 at the kasini3000 master.
or
pwsh -f /your_path/ssh_root_passwd_login_on.ps1
pwsh -f /your_path/ssh_root_passwd_login_off.ps1
到目前为止,aws linux已经发布了两个主要版本,一个在2010年,另一个在2017年。
但是,对于第三个版本(目前叫做aws linux 2022),将承诺两年的发布周期,每个版本的支持期为五年。
aws linux 2022已经发布preview,基于fedora35(openssl3,kernel5.15)围观:
https://aws.amazon.com/cn/linux/amazon-linux-2022
尴尬了,ubuntu虽然好,也属于美国派系。但和centos7差异太大。
而centos9 stream,本身就是fedora 的nightly build.
暂时没有一键安装脚本,本项目也还在观望。
可以通过离线安装方法,从主控机一键安装。
麒麟v10官网:https://www.kylinos.cn/scheme/server/1.html 暂不开放给个人用户试用
支持arm版:需要用tar方式,安装arm版powershell。
curl -L https://gitee.com/chuanjiao10/kasini3000_agent_linux/raw/master/kylin_linux_advanced_server_v10_tercel_install_powershell.bash | /usr/bin/bash
此脚本将开启linux被控机的,ssh的, root + 密码登录。这是为了自动推送ssh公钥到'/root/.ssh/authorized_keys'。 在首次运行krun时,krun调用 [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] ,将从[ nodelist.csv ] 读取linux node的 ip,port,root,pwd 。 为了linux被控机安全,建议推送ssh公钥后,手动运行下列命令,关闭root+密码登录。
script will enable root account and password login on linux node by ssh. "root" account and himself password,is used to push ssh pub key to '/root/.ssh/authorized_keys'. [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] will read linux node ip,port,root,pwd in [ nodelist.csv ] when krun first run.
For the security of the linux node, it is recommended to manually run the following command after pushing the SSH public key to close the root + password login. to disable root + password login,you must run 【zkj_gb关闭linux被控机root密码登录z.ps1 -nodeip 1.1.1.1】 at the kasini3000 master.
or
pwsh -f /your_path/ssh_root_passwd_login_on.ps1
pwsh -f /your_path/ssh_root_passwd_login_off.ps1
统信官网,下载地址: https://www.chinauos.com/resource/download-server
未激活时,需要禁用这两个repo: /etc/yum.repos.d/UOS-AppStream.repo /etc/yum.repos.d/UOS-Base.repo
支持arm版:需要用tar方式,安装arm版powershell。
curl -L https://gitee.com/chuanjiao10/kasini3000_agent_linux/raw/master/chinaous_enterprise_server_install_powershell.bash | /usr/bin/bash
此脚本将开启linux被控机的,ssh的, root + 密码登录。这是为了自动推送ssh公钥到'/root/.ssh/authorized_keys'。 在首次运行krun时,krun调用 [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] ,将从[ nodelist.csv ] 读取linux node的 ip,port,root,pwd 。 为了linux被控机安全,建议推送ssh公钥后,手动运行下列命令,关闭root+密码登录。
script will enable root account and password login on linux node by ssh. "root" account and himself password,is used to push ssh pub key to '/root/.ssh/authorized_keys'. [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] will read linux node ip,port,root,pwd in [ nodelist.csv ] when krun first run.
For the security of the linux node, it is recommended to manually run the following command after pushing the SSH public key to close the root + password login. to disable root + password login,you must run 【zkj_gb关闭linux被控机root密码登录z.ps1 -nodeip 1.1.1.1】 at the kasini3000 master.
or
pwsh -f /your_path/ssh_root_passwd_login_on.ps1
pwsh -f /your_path/ssh_root_passwd_login_off.ps1
下载地址: 阿里云“龙蜥”linux官网,下载地址: https://openanolis.cn/download
支持x86版,若有arm版也支持。
curl -L https://gitee.com/chuanjiao10/kasini3000_agent_linux/raw/master/anolisos8_install_powershell.bash | /usr/bin/bash
此脚本将开启linux被控机的,ssh的, root + 密码登录。这是为了自动推送ssh公钥到'/root/.ssh/authorized_keys'。 在首次运行krun时,krun调用 [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] ,将从[ nodelist.csv ] 读取linux node的 ip,port,root,pwd 。 为了linux被控机安全,建议推送ssh公钥后,手动运行下列命令,关闭root+密码登录。
script will enable root account and password login on linux node by ssh. "root" account and himself password,is used to push ssh pub key to '/root/.ssh/authorized_keys'. [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] will read linux node ip,port,root,pwd in [ nodelist.csv ] when krun first run.
For the security of the linux node, it is recommended to manually run the following command after pushing the SSH public key to close the root + password login. to disable root + password login,you must run 【zkj_gb关闭linux被控机root密码登录z.ps1 -nodeip 1.1.1.1】 at the kasini3000 master.
or
pwsh -f /your_path/ssh_root_passwd_login_on.ps1
pwsh -f /your_path/ssh_root_passwd_login_off.ps1
下载地址:
http://mirrors.aliyun.com/alinux/3/image/
http://mirrors.aliyun.com/alinux/2/image/
支持x86版,若有arm版也支持。Alibaba Cloud Linux 2,Alibaba Cloud Linux 3,这两个版本,用同一个脚本安装。
curl -L https://gitee.com/chuanjiao10/kasini3000_agent_linux/raw/master/alibaba_cloud_linux_install_powershell.bash | /usr/bin/bash
此脚本将开启linux被控机的,ssh的, root + 密码登录。这是为了自动推送ssh公钥到'/root/.ssh/authorized_keys'。 在首次运行krun时,krun调用 [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] ,将从[ nodelist.csv ] 读取linux node的 ip,port,root,pwd 。 为了linux被控机安全,建议推送ssh公钥后,手动运行下列命令,关闭root+密码登录。
script will enable root account and password login on linux node by ssh. "root" account and himself password,is used to push ssh pub key to '/root/.ssh/authorized_keys'. [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] will read linux node ip,port,root,pwd in [ nodelist.csv ] when krun first run.
For the security of the linux node, it is recommended to manually run the following command after pushing the SSH public key to close the root + password login. to disable root + password login,you must run 【zkj_gb关闭linux被控机root密码登录z.ps1 -nodeip 1.1.1.1】 at the kasini3000 master.
or
pwsh -f /your_path/ssh_root_passwd_login_on.ps1
pwsh -f /your_path/ssh_root_passwd_login_off.ps1
下载地址:
http://www.opencloudos.org/?page_id=505
curl -L https://gitee.com/chuanjiao10/kasini3000_agent_linux/raw/master/tencent_opencloudos8.bash | /usr/bin/bash
此脚本将开启linux被控机的,ssh的, root + 密码登录。这是为了自动推送ssh公钥到'/root/.ssh/authorized_keys'。 在首次运行krun时,krun调用 [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] ,将从[ nodelist.csv ] 读取linux node的 ip,port,root,pwd 。 为了linux被控机安全,建议推送ssh公钥后,手动运行下列命令,关闭root+密码登录。
script will enable root account and password login on linux node by ssh. "root" account and himself password,is used to push ssh pub key to '/root/.ssh/authorized_keys'. [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] will read linux node ip,port,root,pwd in [ nodelist.csv ] when krun first run.
For the security of the linux node, it is recommended to manually run the following command after pushing the SSH public key to close the root + password login. to disable root + password login,you must run 【zkj_gb关闭linux被控机root密码登录z.ps1 -nodeip 1.1.1.1】 at the kasini3000 master.
or
pwsh -f /your_path/ssh_root_passwd_login_on.ps1
pwsh -f /your_path/ssh_root_passwd_login_off.ps1
下载地址:https://mirror.rockylinux.org/mirrormanager/mirrors
curl -L https://gitee.com/chuanjiao10/kasini3000_agent_linux/raw/master/rocky_linux_install_powershell.bash | /usr/bin/bash
此脚本将开启linux被控机的,ssh的, root + 密码登录。这是为了自动推送ssh公钥到'/root/.ssh/authorized_keys'。 在首次运行krun时,krun调用 [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] ,将从[ nodelist.csv ] 读取linux node的 ip,port,root,pwd 。 为了linux被控机安全,建议推送ssh公钥后,手动运行下列命令,关闭root+密码登录。
script will enable root account and password login on linux node by ssh. "root" account and himself password,is used to push ssh pub key to '/root/.ssh/authorized_keys'. [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] will read linux node ip,port,root,pwd in [ nodelist.csv ] when krun first run.
For the security of the linux node, it is recommended to manually run the following command after pushing the SSH public key to close the root + password login. to disable root + password login,you must run 【zkj_gb关闭linux被控机root密码登录z.ps1 -nodeip 1.1.1.1】 at the kasini3000 master.
or
pwsh -f /your_path/ssh_root_passwd_login_on.ps1
pwsh -f /your_path/ssh_root_passwd_login_off.ps1
下载地址:https://mirrors.almalinux.org/isos.html
curl -L https://gitee.com/chuanjiao10/kasini3000_agent_linux/raw/master/almalinux_install_powershell.bash | /usr/bin/bash
此脚本将开启linux被控机的,ssh的, root + 密码登录。这是为了自动推送ssh公钥到'/root/.ssh/authorized_keys'。 在首次运行krun时,krun调用 [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] ,将从[ nodelist.csv ] 读取linux node的 ip,port,root,pwd 。 为了linux被控机安全,建议推送ssh公钥后,手动运行下列命令,关闭root+密码登录。
script will enable root account and password login on linux node by ssh. "root" account and himself password,is used to push ssh pub key to '/root/.ssh/authorized_keys'. [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] will read linux node ip,port,root,pwd in [ nodelist.csv ] when krun first run.
For the security of the linux node, it is recommended to manually run the following command after pushing the SSH public key to close the root + password login. to disable root + password login,you must run 【zkj_gb关闭linux被控机root密码登录z.ps1 -nodeip 1.1.1.1】 at the kasini3000 master.
or
pwsh -f /your_path/ssh_root_passwd_login_on.ps1
pwsh -f /your_path/ssh_root_passwd_login_off.ps1
下载地址:https://yum.oracle.com/oracle-linux-isos.html
curl -L https://gitee.com/chuanjiao10/kasini3000_agent_linux/raw/master/oraclelinux_install_powershell.bash | /usr/bin/bash
此脚本将开启linux被控机的,ssh的, root + 密码登录。这是为了自动推送ssh公钥到'/root/.ssh/authorized_keys'。 在首次运行krun时,krun调用 [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] ,将从[ nodelist.csv ] 读取linux node的 ip,port,root,pwd 。 为了linux被控机安全,建议推送ssh公钥后,手动运行下列命令,关闭root+密码登录。
script will enable root account and password login on linux node by ssh. "root" account and himself password,is used to push ssh pub key to '/root/.ssh/authorized_keys'. [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] will read linux node ip,port,root,pwd in [ nodelist.csv ] when krun first run.
For the security of the linux node, it is recommended to manually run the following command after pushing the SSH public key to close the root + password login. to disable root + password login,you must run 【zkj_gb关闭linux被控机root密码登录z.ps1 -nodeip 1.1.1.1】 at the kasini3000 master.
or
pwsh -f /your_path/ssh_root_passwd_login_on.ps1
pwsh -f /your_path/ssh_root_passwd_login_off.ps1
Linux Kernel 5.8,当时Linux内核贡献排行统计显示:
华为在代码修改行(line changed)位列第一,占比 27.8%,是第二名的3倍以上; 代码贡献(changesets)位列第二名,占比 8.6%,仅次于Intel。
只支持lts版。但不是lts版,应该也能用脚本安装powershell。
下载地址:https://www.openeuler.org/zh/download/
curl -L https://gitee.com/chuanjiao10/kasini3000_agent_linux/raw/master/openeuler_install_powershell.bash | /usr/bin/bash
此脚本将开启linux被控机的,ssh的, root + 密码登录。这是为了自动推送ssh公钥到'/root/.ssh/authorized_keys'。 在首次运行krun时,krun调用 [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] ,将从[ nodelist.csv ] 读取linux node的 ip,port,root,pwd 。 为了linux被控机安全,建议推送ssh公钥后,手动运行下列命令,关闭root+密码登录。
script will enable root account and password login on linux node by ssh. "root" account and himself password,is used to push ssh pub key to '/root/.ssh/authorized_keys'. [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] will read linux node ip,port,root,pwd in [ nodelist.csv ] when krun first run.
For the security of the linux node, it is recommended to manually run the following command after pushing the SSH public key to close the root + password login. to disable root + password login,you must run 【zkj_gb关闭linux被控机root密码登录z.ps1 -nodeip 1.1.1.1】 at the kasini3000 master.
or
pwsh -f /your_path/ssh_root_passwd_login_on.ps1
pwsh -f /your_path/ssh_root_passwd_login_off.ps1
sudo apt-get update
sudo apt-get install -y curl apt-transport-https
# Import the public repository GPG keys
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
# Register the Microsoft Product feed
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-jessie-prod jessie main" > /etc/apt/sources.list.d/microsoft.list'
# Update the list of products
sudo apt-get update
# Install PowerShell
sudo apt-get install -y powershell
curl -L https://gitee.com/chuanjiao10/kasini3000_agent_linux/raw/master/debian9_install_powershell.bash | /usr/bin/bash
curl -L https://gitee.com/chuanjiao10/kasini3000_agent_linux/raw/master/debian10_install_powershell.bash | /usr/bin/bash
curl -L https://gitee.com/chuanjiao10/kasini3000_agent_linux/raw/master/debian11_install_powershell.bash | /usr/bin/bash
curl -L https://gitee.com/chuanjiao10/kasini3000_agent_linux/raw/master/debian12_install_powershell.bash | /usr/bin/bash
下述临时安装方法:
apt install libicu72
dpkg -i https://github.com/PowerShell/PowerShell/releases/download/v7.4.0/powershell_7.4.0-1.deb_amd64.deb
echo 'Subsystem powershell /usr/bin/pwsh -sshs -NoLogo -NoProfile' >> /etc/ssh/sshd_config
echo 'UseDNS no' >> /etc/ssh/sshd_config
echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config
systemctl restart ssh.service
debian官方下载地址: https://cdimage.debian.org/cdimage/release/
此脚本将开启linux被控机的,ssh的, root + 密码登录。这是为了自动推送ssh公钥到'/root/.ssh/authorized_keys'。 在首次运行krun时,krun调用 [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] ,将从[ nodelist.csv ] 读取linux node的 ip,port,root,pwd 。 为了linux被控机安全,建议推送ssh公钥后,手动运行下列命令,关闭root+密码登录。
script will enable root account and password login on linux node by ssh. "root" account and himself password,is used to push ssh pub key to '/root/.ssh/authorized_keys'. [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] will read linux node ip,port,root,pwd in [ nodelist.csv ] when krun first run.
For the security of the linux node, it is recommended to manually run the following command after pushing the SSH public key to close the root + password login. to disable root + password login,you must run 【zkj_gb关闭linux被控机root密码登录z.ps1 -nodeip 1.1.1.1】 at the kasini3000 master.
or
pwsh -f /your_path/ssh_root_passwd_login_on.ps1
pwsh -f /your_path/ssh_root_passwd_login_off.ps1
sudo apt-get install libunwind8 libicu52
sudo dpkg -i https://packages.microsoft.com/ubuntu/14.04/prod/pool/main/p/powershell/powershell_6.2.0-1.ubuntu.14.04_amd64.deb
curl -L https://gitee.com/chuanjiao10/kasini3000_agent_linux/raw/master/ubuntu1604_install_powershell.bash | /bin/bash
curl -L https://gitee.com/chuanjiao10/kasini3000_agent_linux/raw/master/ubuntu1804_install_powershell.bash | /bin/bash
curl -L https://gitee.com/chuanjiao10/kasini3000_agent_linux/raw/master/ubuntu2004_install_powershell_2.bash | /bin/bash
curl -L https://gitee.com/chuanjiao10/kasini3000_agent_linux/raw/master/ubuntu2204_install_powershell.bash | /bin/bash
ubuntu lts官方下载地址: http://releases.ubuntu.com/
此脚本将开启linux被控机的,ssh的, root + 密码登录。这是为了自动推送ssh公钥到'/root/.ssh/authorized_keys'。 在首次运行krun时,krun调用 [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] ,将从[ nodelist.csv ] 读取linux node的 ip,port,root,pwd 。 为了linux被控机安全,建议推送ssh公钥后,手动运行下列命令,关闭root+密码登录。
script will enable root account and password login on linux node by ssh. "root" account and himself password,is used to push ssh pub key to '/root/.ssh/authorized_keys'. [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] will read linux node ip,port,root,pwd in [ nodelist.csv ] when krun first run.
For the security of the linux node, it is recommended to manually run the following command after pushing the SSH public key to close the root + password login. to disable root + password login,you must run 【zkj_gb关闭linux被控机root密码登录z.ps1 -nodeip 1.1.1.1】 at the kasini3000 master.
or
pwsh -f /your_path/ssh_root_passwd_login_on.ps1
pwsh -f /your_path/ssh_root_passwd_login_off.ps1
1 disable dropbear sshd,then enable openssh-server sshd.
curl -L https://gitee.com/chuanjiao10/kasini3000_agent_linux/raw/master/alpine_del_dropbear_install_opensshserver.ash | /bin/ash
2 install powershell and edit sshd_config.
curl -L https://gitee.com/chuanjiao10/kasini3000_agent_linux/raw/master/alpine_install_powershell.ash | /bin/ash
curl -L https://gitee.com/chuanjiao10/kasini3000_agent_linux/raw/master/alpine3.13_install_powershell.ash | /bin/ash
此脚本将开启linux被控机的,ssh的, root + 密码登录。这是为了自动推送ssh公钥到'/root/.ssh/authorized_keys'。 在首次运行krun时,krun调用 [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] ,将从[ nodelist.csv ] 读取linux node的 ip,port,root,pwd 。 为了linux被控机安全,建议推送ssh公钥后,手动运行下列命令,关闭root+密码登录。
script will enable root account and password login on linux node by ssh. "root" account and himself password,is used to push ssh pub key to '/root/.ssh/authorized_keys'. [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] will read linux node ip,port,root,pwd in [ nodelist.csv ] when krun first run.
For the security of the linux node, it is recommended to manually run the following command after pushing the SSH public key to close the root + password login. to disable root + password login,you must run 【zkj_gb关闭linux被控机root密码登录z.ps1 -nodeip 1.1.1.1】 at the kasini3000 master.
or
pwsh -f /your_path/ssh_root_passwd_login_on.ps1
pwsh -f /your_path/ssh_root_passwd_login_off.ps1
树莓派,win10-iot,arm 详见:
https://blog.ironmansoftware.com/daily-powershell/powershell-remoting-ssh-raspberry-pi/
https://github.com/PowerShell/PowerShell/releases
官网:https://github.com/microsoft/CBL-Mariner
下载: https://aka.ms/mariner-2.0-x86_64-iso
安装powershell:
curl -L https://gitee.com/chuanjiao10/kasini3000_agent_linux/raw/master/microsoft_cbl_mariner_install_powershell.bash | /bin/bash
rpm包,dnf安装源。
此脚本将开启linux被控机的,ssh的, root + 密码登录。这是为了自动推送ssh公钥到'/root/.ssh/authorized_keys'。 在首次运行krun时,krun调用 [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] ,将从[ nodelist.csv ] 读取linux node的 ip,port,root,pwd 。 为了linux被控机安全,建议推送ssh公钥后,手动运行下列命令,关闭root+密码登录。
script will enable root account and password login on linux node by ssh. "root" account and himself password,is used to push ssh pub key to '/root/.ssh/authorized_keys'. [ winscp复制主控机公钥到被控机_win2linux_pwd.ps1 ] will read linux node ip,port,root,pwd in [ nodelist.csv ] when krun first run.
For the security of the linux node, it is recommended to manually run the following command after pushing the SSH public key to close the root + password login. to disable root + password login,you must run 【zkj_gb关闭linux被控机root密码登录z.ps1 -nodeip 1.1.1.1】 at the kasini3000 master.
or
pwsh -f /your_path/ssh_root_passwd_login_on.ps1
pwsh -f /your_path/ssh_root_passwd_login_off.ps1
https://en.opensuse.org/PowerShell
sudo zypper update && \
sudo zypper install libicu60_2 libopenssl1_0_0
sudo zypper install \
--allow-unsigned-rpm \
https://s3.jcloud.sjtu.edu.cn/899a892efef34b1b944a19981040f55b-oss01/github-release/PowerShell/PowerShell/releases/download/v7.2.16/powershell-7.2.16-1.rh.x86_64.rpm
Amazon Linux release 2 (Karoo) 2023-06-30
centos7 2024-06-30
下列centos7衍生版,和centos7的eol日期相同:
Alibaba Cloud Linux 2,
centos8 已经eol
红帽 rhel 8.4 2023 年 5 月 30 日结束。
https://access.redhat.com/zh_CN/support/policy/updates/errata#RHEL8_Life_Cycle
* 阿里云“龙蜥” Anolis OS 8
* Rocky Linux release 8
* AlmaLinux release 8
* oracle linux server 8
fedora server 35 目测发行后1年01月
https://docs.fedoraproject.org/en-US/releases/eol/
麒麟v10高级服务器版x86-64 (Tercel) eol日期 = 未知
统信UOS服务器版2020 x86_64(kongzi) eol日期 = 未知 。目测和debian10相同
华为openEuler 20.03 LTS(SP2)eol日期 = 发行4年内
https://www.openeuler.org/zh/other/lifecycle/
debian9 已经eol
debian10 2022-08
debian11 2024-08?
ubuntu 16.04 lts 已经eol
ubuntu 18.04 lts 2023-04
ubuntu 20.04 lts 2025-04
ubuntu 22.04 lts 2027-04
For non-server Linux systems, I have NO plans to make a one-click installation script.
Please go to the official website of powershell to find the installation tutorial.
try yourself:
https://github.com/dotnet/core/blob/main/release-notes/7.0/supported-os.md
1 install lib: https://github.com/dotnet/runtime/blob/main/docs/workflow/requirements/freebsd-requirements.md
2 copy pwsh files to /opt/microsoft/powershell/7
3 more see : c:\ProgramData\kasini3000\zkj_install_powershell_offline_win2linux_keyfile.ps1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。