BookmarkSubscribeRSS Feed
ANLYNG
Pyrite | Level 9

We need to transfer from Enterprise Guide/SAS code  from local SAS/Linux server to a SFTP site.

We want to recursive put files and directories from a folderpoint on linux to same structure below a folderpoint on a SFTP.

 

How is that done most easily ? I prefer a command to execute from enterprise guide eg. OS Linux command by x command?

 

Thanks in advance.

1 REPLY 1
Kurt_Bremser
Super User

In order to use sftp (or any command from the SSH suite), you first must set up passwordless authentication to the target site. Which means creating a public/private key pair and store that in the appropriate locations on both server and client. This is necessary because you cannot specify passwords on the commandline for all these commands.

after that, it is just using scp as documented, e.g. here.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 254 views
  • 0 likes
  • 2 in conversation