• 极路由获取ssh权限


    极路由获取ssh权限

    一.打开大神制作的网站 http://www.hiwifi.wtf/  (希望网站能一直开放吧)

    (1)点击获取local_token  http://192.168.199.1/local-ssh/ 获取local_token

    (2)获取uuid  http://192.168.199.1/cgi-bin/turbo/proxy/router_info 获取uuid

    (3)把获取到的local_token和uuid填到对应的输入框内,点击 提交 获取clond token

    (4)把获取到的clond token值填写到第(1)步开启调试工具的对应框内,点提交就会出现开启22端口的提示。

    如果失败的话尝试多试几次???但现在的ssh权限仅仅只是短时间的,过一会就会自动关闭。如果需要长期的开启ssh权限还需要再弄一下,下面提供两种方法,可以任选一个尝试。

    二.永久开启ssh权限(方法一)

    通过xshell或者winscp连接,主机名:192.168.199.1   用户名:root     密码:你的路由器管理密码   端口:22

    执行命令 /etc/init.d/dropbear enable

    三.永久开启ssh权限(方法二)

    (1)通过winscp连接,主机名:192.168.199.1   用户名:root     密码:你的路由器管理密码   端口:22

    (2)打开/etc/rc.local文件并修改,把下面的代码复制粘贴到文件中并保存

    /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 1022

    (3.)重启路由器,下次通过ssh连接的时候就可以使用1022的端口连接,这个1022的端口就不会再自动关闭了。

    192.168.199.1   用户名:root     密码:你的路由器管理密码   端口:1022

    root@Hiwifi:~# ls -alh /overlay/etc/rc.d/
    drwxr-xr-x    2 root     root         576 Apr 18 05:36 .
    drwxr-xr-x   15 root     root        2.1K Apr 18 05:36 ..
    lrwxrwxrwx    1 root     root          19 Apr 18 05:36 K47mentohust -> ../init.d/mentohust
    lrwxrwxrwx    1 root     root          18 Apr 18 05:36 K50dropbear -> ../init.d/dropbear
    lrwxrwxrwx    1 root     root          18 Apr 18 05:31 K98hcsh -> (overlay-whiteout)
    lrwxrwxrwx    1 root     root          18 Apr 18 05:31 S02hcsh -> (overlay-whiteout)
    lrwxrwxrwx    1 root     root          18 Apr 18 05:36 S50dropbear -> ../init.d/dropbear
    lrwxrwxrwx    1 root     root          19 Apr 18 05:36 S53mentohust -> ../init.d/mentohust
    root@Hiwifi:~# 
    root@Hiwifi:~# cat /etc/rc.local 
    # Put your custom commands here that should be executed once
    # the system init finished. By default this file does nothing.
    
    /etc/init.d/dropbear enable && /etc/init.d/dropbear start
    
    exit 0
    root@Hiwifi:~#
  • 相关阅读:
    Mysql关键字冲突的解决方案
    js日期时间函数
    Mysql字符串字段中是否包含某个字符串,用 find_in_set
    mysql中 where in 用法
    Best of Best系列(4)——AAAI
    Best of Best系列(5)——IJCAI
    Best of Best系列(3)——ICML
    Best of Best系列(6)——SIGIR
    Best of Best系列(2)——ICCV
    Best of Best系列(1)——CVPR
  • 原文地址:https://www.cnblogs.com/lsgxeva/p/16376971.html
Copyright © 2020-2023  润新知