Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
1662 Discussions

Download file via SSH from DevCloud

Vladislav-Butko-bvo
1,280 Views

I connected to DevCloud via SSH with Cygwin. How can I donwload some file from DevCloud?

 

I was attempted to do it in this way:
u190242@s001-n078:~/vector-add/src/vector-add-buffers.cpp.prj/reports$ scp guest@ssh.devcloud.intel.com:report.html ~/Downloads

My config file in C:\cygwin64\home\Zver\.ssh:

################################################################################################
# oneAPI DevCloud SSH config
################################################################################################
Host devcloud
User u190242
IdentityFile ~/.ssh/devcloud-access-key-190242.txt
ProxyCommand ssh -T -i ~/.ssh/devcloud-access-key-190242.txt guest@ssh.devcloud.intel.com

Host devcloud.proxy
User u190242
Port 4022
IdentityFile ~/.ssh/devcloud-access-key-190242.txt
ProxyCommand ssh -T devcloud-via-proxy

# If you must route outgoing SSH connection via a corporate proxy,
# replace PROXY_HOSTNAME and PORT below with the values provided by
# your network administrator.
Host devcloud-via-proxy
User guest
Hostname ssh.devcloud.intel.com
IdentityFile ~/.ssh/devcloud-access-key-190242.txt
LocalForward 4022 c009:22
ProxyCommand nc -x PROXY_HOSTNAME:PORT %h %p
################################################################################################

################################################################################################
# DevCloud VSCode config
################################################################################################
Host devcloud-vscode
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
Hostname localhost
User u190242
Port 5022
IdentityFile ~/.ssh/devcloud-access-key-190242.txt
################################################################################################

################################################################################################
# SSH Tunnel config
################################################################################################
Host *.aidevcloud
User u190242
IdentityFile ~/.ssh/devcloud-access-key-190242.txt
ProxyCommand ssh -T devcloud nc %h %p
LocalForward 5022 localhost:22
LocalForward 5901 localhost:5901
################################################################################################

0 Kudos
1 Solution
RajashekarK_Intel
Moderator
1,248 Views

Hi, Thanks for posting in Intel Communities.

 

The command to transfer files from remote is

scp -r <source> <destination>

Instead of first connecting to DevCloud and transferring the file, easiest way is to open local terminal(Cygwin in your case) and transfer this way.

scp -r devcloud:~/<source-filepath> ./<destination-localpath>

 

Just a Heads Up, kindly use OpenSSH(https://devcloud.intel.com/oneapi/documentation/connect-with-ssh-windows-openssh/) way instead of Cygwin(which is deprecated).

 

If this resolves your issue, make sure to accept this as a solution. This would help others with similar issue.

 

Thanks,

Rajashekar

 

View solution in original post

0 Kudos
4 Replies
Vladislav-Butko-bvo
1,279 Views

Need to add what no any output for considered command

VladislavButkobvo_1-1680668664508.png

 

0 Kudos
RajashekarK_Intel
Moderator
1,249 Views

Hi, Thanks for posting in Intel Communities.

 

The command to transfer files from remote is

scp -r <source> <destination>

Instead of first connecting to DevCloud and transferring the file, easiest way is to open local terminal(Cygwin in your case) and transfer this way.

scp -r devcloud:~/<source-filepath> ./<destination-localpath>

 

Just a Heads Up, kindly use OpenSSH(https://devcloud.intel.com/oneapi/documentation/connect-with-ssh-windows-openssh/) way instead of Cygwin(which is deprecated).

 

If this resolves your issue, make sure to accept this as a solution. This would help others with similar issue.

 

Thanks,

Rajashekar

 

0 Kudos
Vladislav-Butko-bvo
1,176 Views

Thank you, It's work! I applied it to download folder with optimiztion report for FPGA (<some_project>\reports):

VladislavButkobvo_2-1680915929650.png

*Consider what in C:\cygwin64\ was appeared folder under name "reports".

 

Be careful, root directory for Cygwin console it's C:\cygwin64\ (for Windows):

VladislavButkobvo_1-1680915479607.png

 

 

 

0 Kudos
RajashekarK_Intel
Moderator
1,134 Views

Thanks for accepting our solution and providing your workaround, If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Regards,

Rajashekar


0 Kudos
Reply