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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 2793 views
  • 1 like
  • 2 in conversation