远程服务器里面个人容器的配置三个问题的具体解决方法
1、登录个人容器,出现SSH拒绝形如下图:
解决办法:
vim /etc/ssh/sshd_config
以下内容有则修改,无则加上
- PasswordAuthentication yes
- PermitRootLogin yes
- PubkeyAuthentication no
- UseLogin yes
重启sshd服务(service sshd restart)===>问题即可解决。
2、连接不上校园网
3、个人容器建立conda虚拟环境失败
3.1、具体形如下图:
解决办法:很可能是没有连接校园网,连接校园网即可。
3.2、具体形如下图
vim ~/.condarc
将所有的内容替换成如下内容:
channels:
- defaults
show_channel_urls: true
channel_alias: http://mirrors.bfsu.edu.cn/anaconda
default_channels:
- http://mirrors.bfsu.edu.cn/anaconda/pkgs/free/
- http://mirrors.bfsu.edu.cn/anaconda/pkgs/main/
- http://mirrors.bfsu.edu.cn/anaconda/pkgs/r/
- http://mirrors.bfsu.edu.cn/anaconda/pkgs/pro/
- http://mirrors.bfsu.edu.cn/anaconda/pkgs/msys2/
custom_channels:
conda-forge: http://mirrors.bfsu.edu.cn/anaconda/cloud/conda-forge/
msys2: http://mirrors.bfsu.edu.cn/anaconda/cloud/msys2/
bioconda: http:///mirrors.bfsu.edu.cn/anaconda/cloud/bioconda/
menpo: http://mirrors.bfsu.edu.cn/anaconda/cloud/menpo/
pytorch: http://mirrors.bfsu.edu.cn/anaconda/cloud/pytorch/
simpleitk: http://mirrors.bfsu.edu.cn/anaconda/cloud/simpleitk/
auto_activate_base: false
注意:对于.condarc配置文件,是一种可选的(optional)运行期配置文件,其默认情况下是不存在的,但当用户第一次运行 conda config命令时,将会在用户的家目录创建该文件。
链接:https://pan.baidu.com/s/1urVC-eptyq_Wh5vdxzfI4A
提取码:Hf66