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-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

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