Filetransfer with scp

  • Hello,


    I want to transfer a file from the VM to the board with scp.


    In the VM-shell I tried this command:

    scp hello.txt root@10.0.0.63:/tmp

    root@10.0.0.63's password:

    Permission denied, please try again.


    I can't log in, why?


    Best regards

    Thomas

  • Hi,


    by default we have preinstalled the tftp server/client on the VM/Board. So you can use this protocol to transfer data. If you want to use scp you have to setup the ssh server on the board. Therefore you have to do the following steps.

    1. Activate network connections
      1. e.g. udhcpc
    2. Setup a date
      1. date "2019-11-07 10:00"
    3. Modify sshd_config (/etc/ssh/sshd_config) if you want to login as root. Before you can modify the file be sure your rootfs is mounted writeable.
      1. In the file you have to insert the line PermitRootLogin=yes
      2. If you want to allow to connect with empty password, then you also have to set PermitEmptyPasswords=yes
    4. After that you can start the ssh server
      1. /etc/init.d/S50sshd start if it´s already started /etc/init.d/S50sshd restart
    5. Now you should be able to use the scp command.


    Your F&S Support Team

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.