Dear Community User! We will start the migration process in one hour.
The community will be then in READ ONLY mode.
Read more: Important information on the platform change.

cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Vs Code ssh connection without login not working

Vs Code ssh connection without login not working

BRamos
Established Member

I am following the tutorial to setup the SDK development found in the link: https://developer.community.boschrexroth.com/t5/Store-and-How-to/Setup-ctrlX-WORKS-App-Build-Environ...

After the app build environment is setup and before opening VS Code it is mentioned that we need to run the ssh-keygen-copy-id.bat to allow ssh connection via VS Code without the need to login.

After inserting the password for the first time I have the error: 'The system cannot find the file specified'

BRamos_0-1670855236289.png

 

After performing this operation the VS Code still asks for login. What should I do to fix this?

 

On a side note: Performing this step automatically solves this issue 'REMOTE HOST IDENTIFICATION HAS CHANGED'.https://developer.community.boschrexroth.com/t5/ctrlX-WORKS/App-Build-Env-ssh-console-fails-to-start...

 

2 REPLIES 2

nickH
Community Moderator
Community Moderator

Hi,

like mentioned in the video. This step is not mandatory to do. I would recommend to do this, because after that you don't have to enter the "boschrexroth"-password everytime you want to connect via ssh to the App Build Environment. 

Because the script failed I can also give you a manual description on how to do these steps:

1. Go to the ".ssh" folder on your host system. The default for windows would be C:/user/youruser/.ssh.

2. Open a console (cmd) in here.

3. Type this comand int the console to generate a private/public key pair: ssh-keygen -t rsa (please don't enter a passphrase)

2022-12-12_17h54_46.png

4. You will see that your key pair got generated. Open the public key (id_rsa.pub) with a editor and copy the value out.  

nickH_0-1670862623291.png

 

5. Connect with Visual Studio Code to your App Build Environment. Open the home folder (File -> Open folder: /home/boschrexroth).

6. Create a folder ".ssh" here and create a file inside this folder with the name "authorized_keys". Paste in the public key you just copied and save it.  

image.png

 

This should do it. Please see also this section in our documentation: SSH Connection/Public Key Authentication.

 

Best regards, 

Nick

Tasty_Tech
Long-established Member

This works! thank you for the post👍

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist