Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
PrachiJain06
Helper II
Helper II

Fabric Notebook

Hello Everyone, I want to access SFTP Server data using fabric Notebook but for that I need to set Inbound Rule . As Notebook will have dynamic IP then how can we allow Notebook IP to access Port 22? Thank you in advance . Please advise

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @PrachiJain06,

I'd like to suggest you try to use the Connection and Transfer to connect and get data from SFTP to local device. Then you can simply use notebook handle this type of data source.

 

# Import Fabric connection and transfer classes
from fabric import Connection, Transfer

# Create a connection object with host, user and port
conn = Connection(host="computer.xxx.xxx.com", user="user", port=22)

# Create a transfer object with the connection
trans = Transfer(conn)

# Copy a file from the SFTP server to the local filesystem
trans.get("myfile.csv", "myfile.csv")

 

How to use notebooks - Microsoft Fabric | Microsoft Learn

Regards,

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

HI @PrachiJain06,

I'd like to suggest you try to use the Connection and Transfer to connect and get data from SFTP to local device. Then you can simply use notebook handle this type of data source.

 

# Import Fabric connection and transfer classes
from fabric import Connection, Transfer

# Create a connection object with host, user and port
conn = Connection(host="computer.xxx.xxx.com", user="user", port=22)

# Create a transfer object with the connection
trans = Transfer(conn)

# Copy a file from the SFTP server to the local filesystem
trans.get("myfile.csv", "myfile.csv")

 

How to use notebooks - Microsoft Fabric | Microsoft Learn

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.