![maximatecc CCpilot XM Скачать руководство пользователя страница 31](http://html.mh-extra.com/html/maximatecc/ccpilot-xm/ccpilot-xm_software-manual_1744642031.webp)
CCpilot XM and CrossCore XM - Software guide
Revision: 1.6
Software Guide
Date: Jun 24, 13
www.maximatecc.com
8.5.
Changing serial port settings
By default the serial port is set up as a console, but this can be disabled to allow connection of
peripheral accessories, or to allow firmware components upgrade. The serial port is accessed from
dev/ttyS0
and when used as a serial console, the settings for serial port are
115200-8-N-1
.
To disable the serial console do the following:
# su do d is ab le -s er ia l -c on so le .s h
Use the following command to enable it again
# su do e na bl e- se ri al - co ns ol e. sh
When the serial port is not used as a serial console, i.e. disabled, the settings can be changed to fit
your connection requirements with standard serial port operations.
8.6.
Remote access
The methods described in this chapter require an IP address being assigned to the XM device.
8.6.1.
SSH
To connect to the XM device, issue the following command (and give password when asked):
# ss h cc s@ X. X. X. X
To connect to a host from the XM device, issue the following command:
~ # s sh U se rn am e@ X. X. X .X
Above X.X.X.X is known as an SSH server IP address, with username
Username
. A password might
be necessary.
8.6.2.
SCP
To copy a file to target use the following command (and give password when asked):
# sc p Fi le 1 cc s@ X. X. X .X :/ op t/ Fi le
To copy a file from target use the following command (and give password when asked):
# sc p cc s@ X. X. X. X: / o p t/ Fi le F il e
To copy a file from a host while on a XM device to a host, use the following command:
~ # s cp F il e Us er na me @ X. X. X. X: Fi le
To copy a file from the XM device to a host, use the following command:
~ # s cp U se rn am e@ X. X. X .X :F il e Fi le
Above X.X.X.X is known as an SSH server IP address, username
Username
. A password might be
necessary.
8.6.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.