deepstream6.1docker远程登录步骤
1、启动容器时要映射端口号
docker run --gpus all -p 8001:22 --name=test -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -e CUDA_CACHE_DISABLE=0 nvcr.io/nvidia/deepstream:6.1-triton
2、进入容器,下载openssh
apt-get update
apt-get install openssh-server
3、下载成功后修改配置文件
vim /etc/ssh/sshd_config
注释掉 PermitRootLogin prohibit-password 这一行, 没有可以直接操作第3步
添加这一行 PermitRootLogin yes
4、修改密码 passwd
5、重启ssh服务
/etc/init.d/ssh restart