CCilot XA and CCpilot XS
Product revision: 0.12
Software guide
2018-03-19
www.crosscontrol.com
24
7.4.2.
SCP
To copy a file to target use the following command (and give password when asked):
# scp File1 [email protected]:/opt/File
To copy a file from target use the following command (and give password when asked):
# scp [email protected]:/opt/File File
To copy a file from a host while on a device to a host, use the following command:
~# scp File [email protected]:File
To copy a file from the device to a host, use the following command:
~# scp [email protected]:File File
Above X.X.X.X is known as an SSH server IP address, username
Username
. A password might be
necessary.
7.4.3.
Password-free login for SSH and SCP
Even though the
ccs
user has password, SSH-connections can be configured to connect without
password, using identity files. This method is mainly useful for remotely executed scripts or alike.
On connecting host (not the target device), execute the command below and enter an empty
passphrase when prompted.
~$ ssh-keygen -t rsa -f xa_rsa
Copy (or append) the created
xa_rsa.pub
file into target device as a
/etc/ssh/authorized_keys
-file.
Note, this method needs to be done with root file system mounted as read-write.
Move the
xa_rsa
file to a usable location (e.g.
~/.ssh/
)
Either configure the id-file into use in
ssh_config
or assign it when executing
ssh
or
scp
.
~$ ssh -i ~/.ssh/xa_rsa [email protected]
7.4.4.
Remote command execution
After password-free login is enabled, any commands can be started remotely without login.
~$ ssh [email protected]:X "ls -al /opt/"
If starting services or background tasks, append "
&
" to command between quotes.
7.4.5.
VNC
The device Linux version VNC server availability is currently unsupported. The idea is to use it for
remote access via GUI, for instance when using CrossCore XS headless devices.
To access the device via VNC, you will need to use a VCN viewer application and enter the IP
address of the device, along with the password when prompted for.