作者小头像 Lv.1
38 成长值

个人介绍

这个人很懒,什么都没有留下

感兴趣或擅长的领域

暂无数据
个人勋章
TA还没获得勋章~
成长雷达
5
18
0
15
0

个人资料

个人介绍

这个人很懒,什么都没有留下

感兴趣或擅长的领域

暂无数据

达成规则

发布时间 2021/08/26 11:51:10 最后回复 李旭-FAE 2021/08/26 15:07:10 版块 EC-IoT
2244 3 0
发布时间 2019/04/28 16:51:42 最后回复 智能远动机 2020/09/30 11:43:27 版块 EC-IoT
8734 7 1
发布时间 2020/07/29 18:56:56 最后回复 如履如临如烹 2020/07/30 11:32:07 版块 EC-IoT
1338 3 0
他的回复:
一、用ssh-keygen创建公钥haifeng@haifeng-EX38-DS4:/$ ssh-keygen -t rsaGenerating public/private rsa key pair.Enter file in which to save the key (/home/haifeng/.ssh/id_rsa):Enter passphrase (empty for no passphrase):Enter same passphrase again:Your identification has been saved in /home/haifeng/.ssh/id_rsa.Your public key has been saved in /home/haifeng/.ssh/id_rsa.pub.The key fingerprint is:7b:75:98:eb:fd:13:ce:0f:c4:cf:2c:65:cc:73:70:53 haifeng@haifeng-EX38-DS4The key's randomart image is:+--[ RSA 2048]----+| E|| .|| ...|| + =.|| S + +.*|| . . + Bo|| . . . = =|| . . . * || . ..=|+-----------------+##输入后,会提示创建.ssh/id_rsa、id_rsa.pub的文件,其中第一个为密钥,第二个为公钥。过程中会要求输入密码,为了ssh访问过程无须密码,可以直接回车 。2.查看钥匙。[root@localhost .ssh]# ls ~/.ssh/id_rsa id_rsa.pub known_hosts###可以发现 ssh目录下的两枚钥匙。3.将公钥复制到被管理机器上面[root@localhost .ssh]# scp id_rsa.pub [email]root@192.168.36.194[/email]:~/.ssh/authorized_keysroot@192.168.36.194's password:id_rsa.pub 100% 408 0.4KB/s 00:004.访问# ssh 192.168.36.194The authenticity of host ' (192.168.36.194>)' can't be established.RSA key fingerprint is 34:b9:92:06:53:e6:91:4d:47:92:73:57:78:6a:5d:09.Are you sure you want to continue connecting (yes/no)?yesWarning: Permanently added ' (192.168.36.194>' (RSA) to the list of known hosts.这是因为首次访问后,ssh会在.ssh/known_hosts中保存各个认证过的主机信息:192.168.36.194 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAppStzIRxeFn0e737z7KO1tdm6CJUoLapaaoBDZqHy0Z11cUAmpg02dbrqwU7TBY9lDFwWQcry+W8X8qk1CoPdzu8YcMCpw5425mai0/RxkB/RPZ1putL2DQrRBMRTU1m5meLOYRXYlnU5E+YElCgH+ZJ8EXiurOzDvw6vi7pASi9wMQuJosFyNmv5E9/8ULgaKg3LtvP+0O1wPxrHOBDwVq2u9Oi7T2pX8deBEnOI4uG4CGXn/p0ml+uuS4DO3Up2VjqoRtqtuzWExnTyAGS/wQNnN3mera1ERya3FomEVHJRV5K2zJRkgSF8WfETXzQ2rAliOsW/YLTGF8vVvjo5w==5.再次访问,ssh登录发现可以不用密码登录。[root@localhost .ssh]# ssh 192.168.36.194Last login: Fri Apr 22 00:56:45 2011 from 192.168.18.44[root@Game2 ~]#这事网上的一些教程,但是咱们的TI核心板不支持这样配置呢