putty -ssh ssh-server -P 2128 -L 3489:rds-remote:3389 -L 2122:sftp-remote:22
相關參數參考
-l 指定帳號
-pw 指定密碼
-P 指定 port
-ssh 指定 ssh 協定
-m 指定執行連線端指令集,指令執行完畢,putty視窗會自動關閉
-L 指令 tunnel(local_port:sftp.remote:remote_port)
2020年10月26日 星期一
putty forward 指令列摘要
2020年10月14日 星期三
CentOS 7 (LXC) 安裝 XRDP摘要
yum install -y gnome-classic-session gnome-terminal nautilus-open-terminal control-center liberation-mono-fonts
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm;yum -y install -y xrdp tigervnc-server
cp /etc/xrdp/xrdp.ini /etc/xrdp/xrdp.ini.ori;
cp /etc/xrdp/xrdp.ini /etc/xrdp/xrdp.ini.$(date +%s);
sed -i 's/ssl_protocols=TLSv1.2, TLSv1.3/ssl_protocols=TLSv1, TLSv1.1, TLSv1.2, TLSv1.3/g' /etc/xrdp/xrdp.ini;
systemctl enable xrdp;systemctl start xrdp;
防火牆設定
firewall-cmd --permanent --add-port=3389/tcp
firewall-cmd --reload
sssd設定
echo "ad_gpo_map_interactive = +xrdp-sesman">>/etc/sssd/sssd.conf
2020年10月13日 星期二
ssh 登入錯誤
登入錯誤訊息
Unable to negotiate with 192.168.0.253 port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
登入錯誤訊息
Unable to negotiate with 192.168.0.253 port 22: no matching cipher found. Their offer: 3des-cbc
ssh 加入相關參數
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -oCiphers=+3des-cbc 192.168.0.253
編輯 ~/.ssh/config
Host *
ServerAliveInterval 10
HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
Proxmox VE 6.x 錯誤訊息 short read on command socket (16 !=0)(500)
Proxmox 6.x 錯誤訊息
short read on command socket (16 !=0)(500)
解決方式
systemctl restart lxc.service
Proxmox Backup Server 1.0.1-1 安裝摘要
mv /etc/apt/sources.list.d/pbs-enterprise.list /etc/apt/sources.list.d/pbs-enterprise.list.bak
echo "deb http://download.proxmox.com/debian/pbs buster pbs-no-subscription"> /etc/apt/sources.list.d/pbs-no-subscription.list
apt update
apt upgrade -y
Cisc, Netgear VLAN 設定摘要
Cisco
interface GigabitEthernet1/0/1
switchport access vlan 200
switchport mode access
Netgear
interface 1/0/1
vlan pvid 200
vlan participation include 200
R 重新安裝 package
# R 匯出舊套件名稱
pkgs.file = "~/r_packages.rdata"
pkgs.df <- installed.packages(priority = "NA")
pkgs.vec <- as.vector(pkgs.df[,1])
save(pkgs.vec, file = pkgs.file)
# 使用匯出清單 安裝 套件
pkgs.file = "~/r_packages.rdata"
load(pkgs.file)
install.packages(pkgs.vec)