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-white.png

🚨 Early Bird Rate Extended!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Lock in the best rate now before the price increases on April 1.

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