XG2000 series User's Guide
118/315
All Rights Reserved, Copyright (C) PFU LIMITED 2009
5.6.13 scp put
Function
Uploads the files in volatile memory to the SSH server.
Prompt
xg#
Command syntax
scp put USERNAME HOST LOCAL-FILE [ REMOTE-FILE ]
Parameter
z USERNAME
Specifies the username of the SSH server.
z HOST
Specify the hostname of the SSH server or IP address.
IP addresses that can be specified are: 1.0.0.1 - 126.255.255.254, 128.0.0.1 - 191.255.255.254,
and 192.0.0.1 - 223.255.255.254.
z LOCAL-FILE
Specifies a file name to upload.
z [ REMOTE-FILE ]
Specifies the file name to use on the SSH server.
When this parameter is omitted, the "LOCAL-FILE" file name will be used.
Command type
Operation management commands
Message
% The length of user name is invalid.
Explanation
The length of the username is invalid.
Solution
Specify the username 16 or less characters.
lost connection
Explanation
It failed to access to specified SSH server.
Solution
Specify the host name, IP address, or username.
No more remote host public key can be registered.
Explanation
Specified remote host public key could not be registered.
Solution
Delete a public key by using "clear ssh-rhost key" command, then execute the command
again.
%1$: No such file or directory
Explanation
Specified file does not exist.
[[Inserted string]]%1$: Specified file name.
Solution
Specify the correct file name.
scp: %1$: No such file or directory
Explanation
Specified file does not exist.
[[Inserted string]]%1$: Specified file name.
Solution
Specify the correct file name.
scp: %1$: Permission denied
Explanation
There was no access permission to the SSH server.
[[Inserted string]]%1$: Specified file name.
Solution
Check the access permission to the SSH server.
ssh: connect to host %1$ port 22: No route to host
Explanation
It failed to access to specified SSH server.
[[Inserted string]]%1$: Specified IP address or host name.
Solution
Specify the correct IP address or host name.
Check the setting and status of SSH server and whether there is no problem in network
connection to the SSH server.
ssh: connect to host %1$ port 22: Network is unreachable
Explanation
It failed to access to specified SSH server.
[[Inserted string]]%1$: Specified IP address or host name.
Solution
Specify the correct IP address or host name.
Check the setting and status of SSH server and whether there is no problem in network
connection to the SSH server.