Junos
Highlighted
Junos

scp over ipv6 doesnt work

2 weeks ago

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!

 

5 REPLIES
Junos

Re: scp over ipv6 doesnt work

2 weeks ago

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

Thanks,
Nellikka
Please Mark My Solution Accepted if it Helped, Kudos are Appreciated too!!!
Junos

Re: scp over ipv6 doesnt work

2 weeks ago

Typo, Correct syntax given below:

 

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

 

Thanks,
Nellikka
Please Mark My Solution Accepted if it Helped, Kudos are Appreciated too!!!
Junos

Re: scp over ipv6 doesnt work

a week ago

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
Junos
Solution
Accepted by topic author jbosch
a week ago

Re: scp over ipv6 doesnt work

a week ago

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

 

Thanks,
Nellikka
Please Mark My Solution Accepted if it Helped, Kudos are Appreciated too!!!
Junos

Re: scp over ipv6 doesnt work

a week ago

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