# Connect to an SMB/CIFS folder

The article explains how to connect to an SMB/CIFS folder.

Procedure: Step 1. Create and configure a connection

1. Open the New cloud storage connection dialog.

In a workspace:

1. On the Home page, select the workspace to which you want to add a folder.

2.  In the workspace resources, select ![Document](https://resources.jetbrains.com.cn/help/img/datalore/2026.3/document.svg)Data and switch to the Cloud storage tab.

3.

Click ![Plus icon](https://resources.jetbrains.com.cn/help/img/datalore/2026.3/plus.svg) New cloud storage connection at the top right.

![Cloud storage tab](https://resources.jetbrains.com.cn/help/img/datalore/2026.3/cloud-storage.png)

In a notebook:

1.  In the sidebar, select ![Attach](https://resources.jetbrains.com.cn/help/img/datalore/2026.3/attach.svg) (Attached data).

2. Switch to the Cloud storage tab.

3.

Click ![Plus](https://resources.jetbrains.com.cn/help/img/datalore/2026.3/plus.svg)New cloud storage.

![Creating a cloud storage connection in a notebook](https://resources.jetbrains.com.cn/help/img/datalore/2026.3/cloud-storage-notebook.png)

2. In the New cloud storage connection dialog, select SMB/CIFS.

3. In the New SMB/CIFS cloud storage connection dialog, fill in the following fields:

* Display name: to specify the name for this data source in your system

* Host: to specify the SMB server hostname

* Port: to specify the SMB port

* Username and Password: to specify the user credentials

* Domain: to specify the SMB server domain

* Share: to specify the SMB share you want to connect

* Custom options: to specify additional parameters

![SMB/CIFS cloud storage connection](https://resources.jetbrains.com.cn/help/img/datalore/2026.3/smb.png)

4. (Optional) Click the Test connection button to make sure the provided parameters are correct.

5. Click the Create and close button to finish the procedure.

Procedure: Step 2. Attach the connection to a notebook

In a workspace:

1. Open the notebook you want to attach the connection to.

2.  If the notebook is not running, start it by clicking `Run | Start machine`.

3.  In the sidebar, select Attached data and switch to the Cloud storage tab.

4.

Enable the toggle in your SMB/CIFS connection.

In a notebook:

1.  If the notebook is not running, start it by clicking `Run | Start machine`.

2.  In the sidebar, select Attached data and switch to the Cloud storage tab.

3.

Enable the toggle in your SMB/CIFS connection.

Procedure: Step 3. Use the connection in the notebook

After the connection is mounted, you can access files in the SMB/CIFS folder from your notebook code:

```PYTHON
import pandas as pd

df = pd.read_csv("/data/smb/my_file.csv")
df
```

```KOTLIN
%use dataframe

val df = DataFrame.readCsv("/data/smb/my_file.csv")
df
```

```SCALA
val lines = scala.io.Source.fromFile("/data/smb/my_file.txt").mkString
```

```R
df <- read.csv("/data/smb/my_file.csv")

print(df)
```

The connection’s mount path, such as `/data/smb/`, is shown on the connection card. To copy the path, click `∙∙∙ | Copy directory path`.

## Next steps

* Learn how to manage and delete cloud storage connections [in a workspace](manage-cloud-storage-connections-in-a-workspace.html) and [in a notebook](manage-cloud-storage-connections-attached-to-a-notebook.html).

## Keywords

cloud storage, cloud storage connection, attach data, data sources, SMB/CIFS, connect to remote foldersconnect to remote storages

