BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
duanzongran
Obsidian | Level 7

HI! friends!

now,my sas is installed on a win7 OS  PC,and i want to connect to a SFTP(linux)  to read a csv_file(import a csv_file to my work library for data analysis);

i can read the csv_file by using putty, comand as follows:
GET /home/mypath/csv_file.csv

 

捕获.PNG

in BASE SAS, i tried to import the csv_file to my work library ,the code is just  like this :

filename lin  sftp '/home/fengxian/gpa.csv' host="10.50.100.34" user="fengxian"  ;
 
data ll;
infile lin delimiter=',',firstobs=2 ;
input nobs gpa hsm hss hse satm satv gender;
run;
 
but,the log is 
ERROR: Connection refused, check key authentication and sshd server status.
 
any suggestion is welcom!
thanks in advance!
1 ACCEPTED SOLUTION
2 REPLIES 2

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 2099 views
  • 1 like
  • 2 in conversation