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!
Go to Solution.
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
You can copy from shell prompt and note down the backslash in the address field
scp -6 /config/juniper.conf.gz scp://username@\[3001::\7]:/public/previous/nodename.gz
Typo, Correct syntax given below:
scp -6 /config/juniper.conf.gz scp://username@\[3001::7\]:/public/previous/nodename.gz
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
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]
[[user@]host1:]file1 ... [[user@]host2:]file2
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
© 1999 - 2019 Juniper Networks, Inc.
All rights reserved