Skip To Main Content
Support Knowledge Base

Unable to Establish SSH Connection and SCP with the IDC Instance

Content Type: Troubleshooting   |   Article ID: 000097262   |   Last Reviewed: 12/08/2023

Environment

Operating System

Windows® 10, 64-bit*

Description

  • Having issues transferring files to the IDC instance using SCP.
  • Receiving the error: stricthostkeychecking=no: no such file or directory.

Resolution

  1. Create a config file in the .ssh directory.
  2. Add the following to the config file:

    Host *

    StrictHostKeyChecking no

  3. Establish the connection with your instance using the below command:

    ssh -J guest@146.152.232.8 -L 10022:100.81.x.x:22 ubuntu@100.81.x.x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no

  4. With the SSH connection established, open a second terminal (on a Windows* machine) and run the following commands:
     
    • To copy files from Windows* to your instance:

      scp -P 10022 test.txt ubuntu@localhost:~/test.txt

    • To copy files from your Instance to Windows*:

      scp -P 10022 ubuntu@localhost:~/test-ubuntu.txt "C:\Users\username"

Related Products

This article applies to 2 products.