Junos OS

 View Only
last person joined: yesterday 

Ask questions and share experiences about Junos OS.
  • 1.  scp over ipv6 doesnt work

    Posted 12-07-2018 07:41

    I cannot get SCP filetransfers to work using ipv6: got a srx100 and srx240 and on both I have no problems getting tftp / sftp / ftp to work over ipv6, however when I try 


    file copy /config/juniper.conf.gz scp://username@[3001::7]/public/previous/nodename.gz

    I get the following response

    cp: username@[3001:/public/previous/nodename.gz: No such file or directory
    error: put-file failed
    error: could not send local copy of file

    Can somebody enlighten me? Thanks in advance!



  • 2.  RE: scp over ipv6 doesnt work

    Posted 12-07-2018 08:46

    You can copy from shell prompt and note down the backslash in the address field

    start shell

    scp -6 /config/juniper.conf.gz scp://username@\[3001::\7]:/public/previous/nodename.gz

  • 3.  RE: scp over ipv6 doesnt work

    Posted 12-07-2018 08:59

    Typo, Correct syntax given below:


    scp -6 /config/juniper.conf.gz scp://username@\[3001::7\]:/public/previous/nodename.gz


  • 4.  RE: scp over ipv6 doesnt work

    Posted 12-10-2018 04:24

    Hi Nellikka,


    thank you for your suggestion, I tried it and encountered the following:


    root@nodename% scp -6 /config/juniper.conf.gz scp://username@\[3001::7\]:/public/previous/nodename.gz
    ssh: Could not resolve hostname scp: hostname nor servname provided, or not known
    lost connection

    I don't see why it thinks scp should be a hostname here, when I execute the scp command on its own I get the following response:


    usage: scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
               [-l limit] [-o ssh_option] [-P port] [-S program]
               [-JU routing_instanse]
               [[user@]host1:]file1 ... [[user@]host2:]file2

  • 5.  RE: scp over ipv6 doesnt work
    Best Answer

    Posted 12-10-2018 04:34

    Sorry, correct syntax is given below. This happened because I copied your cli command exactly to shell.

    scp -6 /config/juniper.conf.gz  username@\[3001::7\]:/public/previous/nodename.gz


  • 6.  RE: scp over ipv6 doesnt work

    Posted 12-10-2018 06:59

    Thank you very much! I don't understand why this is the only transfer command regarding ipv6 that should be executed this way but it works Man Very Happy