Open cndaqiang opened 5 years ago
密钥
ssh-keygen -t rsa -C "mom"
最新版本的win10复制ssh的key到github会报错 老版本的win10不会 貌似是尾部的换行符的原因
#安装ssh
zypper install openssh
ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key
设置端口,避开win10的22
vim /etc/ssh/sshd_config
#也许还需要打开密码登录
PasswordAuthentication yes
添加入站规则
启动
/usr/sbin/sshd
ssh -p 1022 cndaqiang@10.127.1.27 "cd /Users/cndaqiang/code/TDQE/qe-6.4.1-devel.0.1 ; make pwall"
brew install sshfs
sshfs -o transform_symlinks -o follow_symlinks cndaqiang@mom:/home/cndaqiang ~/suse -p 1022
卸载
umount ~/suse
gcc编译器
其他同bolg
openmpi也可以用zypper
bashrx