简体   繁体   English

初始注册后如何在 Deeplens 摄像头中启用 SSH

[英]How to enable SSH in Deeplens camera after the initial registration

I have registered my Amazon Deeplens camera in the AWS console and selected to disable SSH and automatic updates.我已在 AWS 控制台中注册了我的 Amazon Deeplens 摄像头并选择禁用 SSH 和自动更新。 Then I found that in order to update it manually it's necessary to login into the shell of the the camera (Ubuntu) so, for convenience, I want to enable back SSH.然后我发现为了手动更新它,必须登录到相机的外壳(Ubuntu),所以为了方便起见,我想启用回 SSH。

How can I do this?我怎样才能做到这一点?

In order to do that you will have to access the camera using a monitor, mouse and keyboard.为此,您必须使用显示器、鼠标和键盘访问相机。 then login into Ubuntu using the same credentials as the user you selected for the camera configuration, open a shell and login and verify ssh is running:然后使用与您为相机配置选择的用户相同的凭据登录 Ubuntu,打开 shell 并登录并验证 ssh 正在运行:

> service ssh status

If it is enabled then you just need to enable the rules to connect to port 22:如果已启用,那么您只需要启用连接到端口 22 的规则:

> sudo ufw allow ssh

If it's not then you need to enable and start ssh first:如果不是,则您需要先启用并启动 ssh:

> sudo systemctl start ssh
> sudo systemctl enable ssh

Then you can ssh into the cam with:然后你可以通过 ssh 进入摄像头:

> ssh aws_cam@YOUR_CAM_IP_ADDRESS

and optionally update awscam manually (if this is what you want):并可选择手动更新 awscam(如果这是您想要的):

> sudo apt-get update
> sudo apt-get install awscam
> sudo reboot

When setting up the device you can connect to it's web administrative interface and enable/disable SSH.设置设备时,您可以连接到它的 Web 管理界面并启用/禁用 SSH。 See: https://docs.aws.amazon.com/deeplens/latest/dg/deeplens-getting-started-set-up.html请参阅: https : //docs.aws.amazon.com/deeplens/latest/dg/deeplens-getting-started-set-up.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM