Junos OS

 View Only
last person joined: 10 hours ago 

Ask questions and share experiences about Junos OS.
  • 1.  Noob JunOS EVO ftp/ssh issue

    Posted 02-15-2023 10:34

     root-authentication {
        encrypted-password "$6..."; ## SECRET-DATA
    }
    login {
        user admin {
            full-name Administrator;
            uid 2000;
            class super-user;
            authentication {
                encrypted-password "$6..."; ## SECRET-DATA
            }
        }

    services {
        ftp;
        ssh {
            protocol-version v2;
            connection-limit 10;
        }
    }

    run show version 
    Hostname: qfx5220-32cd-am4-1
    Model: qfx5220-32cd
    Junos: 21.1R1.11-EVO
    Yocto: 2.2.1
    Linux Kernel: 4.8.28-WR2.2.1_standard-gce2ff76
    JUNOS-EVO OS 64-bit [junos-evo-install-qfx-ms-x86-64-21.1R1.11-EVO]

    5220 connected via et-0/0/0 with static ip-sw and default route.

    No filters by config.

    From outside:

    1. ssh root@ip-sw The password always does not match. Although I changed it several times and just copied the method copy-paste
    2. ssh admin@ip-sw OK
    3. ftp ip-sw - no ftp service
    4. nmap ip-sw PORT   STATE    SERVICE
      21/tcp filtered ftp
      22/tcp open     ssh
      79/tcp filtered finger

    any ideas how to upload junos?



  • 2.  RE: Noob JunOS EVO ftp/ssh issue

    Posted 02-15-2023 11:58
    1.  Remote Access Overview | Junos OS Evolved | Juniper Networks (You've not been typing it wrong, the default for root-login is "deny-password")
    2. "ok"
    3. no idea (genuinely have never used ftp to a juniper, and didn't even notice there was an ftp service available!)
    4. either pull to the device after login, or push with scp, since you can ssh on as admin.
    ~$touch eusahues.txt
    ~$scp eusahues.txt ip-sw:
    Password:
    eusahues.txt                                                         100%    0     0.0KB/s   00:00
    ~$ ssh ip-sw:
    Password:
    --- JUNOS 20.4R3-S4.2-EVO Linux (none) 4.8.28-WR2.2.1_standard-g5382e48 #1 SMP PREEMPT Wed May 25 15:16:55 PDT 2022 x86_64 x86_64 x86_64 GNU/Linux
    eusahues@ip-sw> file list eusahues.txt
    /var/home/RW-User/eusahues.txt
    


  • 3.  RE: Noob JunOS EVO ftp/ssh issue

    Posted 02-15-2023 12:20

    Thank you!

    remote linux# touch t.txt
    # ls -al t.txt 
    -rw-r--r-- 1 root root 3 Feb 15 17:15 t.txt
    # echo "Hello world" > t.txt
    # scp t.txt admin@ip-sw:/var/tmp/
    Password: 
    t.txt                                                                                                                                                                                                     100%   12     0.0KB/s   00:00    

    Solved!