TWCC
    • Sharing Link copied
    • /edit
    • View mode
      • Edit mode
      • View mode
      • Book mode
      • Slide mode
      Edit mode View mode Book mode Slide mode
    • Note Permission
    • Read
      • Owners
      • Signed-in users
      • Everyone
      Owners Signed-in users Everyone
    • Write
      • Owners
      • Signed-in users
      • Everyone
      Owners Signed-in users Everyone
    • More (Comment, Invitee)
    • Publishing
    • Commenting Enable
      Disabled Forbidden Owners Signed-in users Everyone
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Invitee
    • No invitee
    • Options
    • Versions and GitLab Sync
    • Transfer ownership
    • Delete this note
    • Template
    • Insert from template
    • Export
    • Google Drive Export to Google Drive
    • Import
    • Google Drive Import from Google Drive
    • Gist
    • Clipboard
    • Download
    • Markdown
    • HTML
    • Raw HTML
Menu Sharing Help
Menu
Options
Versions and GitLab Sync Transfer ownership Delete this note
Export
Google Drive Export to Google Drive
Import
Google Drive Import from Google Drive Gist Clipboard
Download
Markdown HTML Raw HTML
Back
Sharing
Sharing Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
More (Comment, Invitee)
Publishing
More (Comment, Invitee)
Commenting Enable
Disabled Forbidden Owners Signed-in users Everyone
Permission
Owners
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Invitee
No invitee
   owned this note    owned this note      
Published Linked with GitLab
Like BookmarkBookmarked
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
# 資料傳輸節點 請使用支援 sftp 協定的工具,連線至 nano5 的檔案傳輸節點,偏好命令列工具的用戶(例如:Linux/UNIX 的用戶)建議透過 `sftp` 命令來傳輸檔案 ; Windows 用戶建議使用 WinSCP 來傳輸檔案。 ## 使用 MobaXterm 的 sftp :::spoiler 1. 輸入命令 ``` sftp -P 2222 <USER>@nano5.nchc.org.tw:2222 ``` ,或是 ``` sftp <USER>@140.110.148.5:2222 ```` > 請注意:必須先輸入「iServcie 主機帳號」(即上述的 `<USER>`),才會出現雙因子認證的提示訊息。 ![](https://man.twcc.ai/_uploads/BksR5mhGxx.png) 2. Login method:輸入 `1`--`3` 任一選項,選擇雙因子認證方式。 ![](https://man.twcc.ai/_uploads/r1e2Ay2fxg.png) 3. Password:輸入「iService 主機帳號密碼」,就會進人您的用戶目錄(`/home/$USER`)下。 ![](https://man.twcc.ai/_uploads/SyAWh7nzxg.png) 4. 圖形界面右側是 nano5 的資料,可以點擊您要的檔案拖拉到左邊的地端,即可完成傳輸檔案。 ::: ## 使用 WinSCP :::spoiler 1. 「主機名稱」輸入 `nano5.nchc.org.tw` 或是 `140.110.148.5`。 2. 「Port」輸入 `2222`。 3. 「使用者名稱」輸入「iServcie 主機帳號」。 > 請注意:如未輸入「iServcie 主機帳號」,將會以您終端機的用戶名稱登入,若您終端機的用戶名稱與「iServcie 主機帳號」不同,有可能出現錯誤。 4. 「密碼」 輸入「iService 主機帳號密碼」。 ![](https://man.twcc.ai/_uploads/HyZzCX2feg.png) 5. 「Login method」輸入 `1`--`3`任一選項,選擇雙因子認證方式。 ![](https://man.twcc.ai/_uploads/HJ6fCXnMel.png) 6. 完成雙因子認證後,即可連線至資料傳輸節點。 圖形界面右側是 nano5 的資料,可以點擊您要的檔案拖拉到左邊的地端,即可完成傳輸檔案。 ![](https://man.twcc.ai/_uploads/HJV7CX2zgl.png) ::: ## 使用 `sftp` 命令 :::spoiler 1. 輸入命令 ``` sftp -P 2222 <USER>@nano5.nchc.org.tw ``` ,或是 ``` sftp <USER>@140.110.148.5:2222 ```` > 請注意:如未輸入「iServcie 主機帳號」(即上述的 `<USER>`),將會以您終端機的用戶名稱登入,若您終端機的用戶名稱與「iServcie 主機帳號」不同,有可能出現錯誤。 2. Login method:輸入 `1`--`3` 任一選項,選擇雙因子認證方式。 3. Password:輸入「iService 主機帳號密碼」,就會進入您的用戶目錄(`/home/$USER`)下。 ``` (<USER>@nano5.nchc.org.tw) Please select the 2FA login method. 1. Mobile APP OTP 2. Mobile APP PUSH 3. Email OTP Login method: 2 (<USER>@nano5.nchc.org.tw) Password: xxxxxx Connected to 140.110.148.5. sftp> ``` 4. 確認要上傳/下載的檔案路徑,執行 `sftp` 命令 - 將檔案下載將檔案下載至地端的目前目錄 ``` sftp> get Hello.c Fetching /home/<USER>/Hello.c to Hello.c Hello.c 100% 325 2.1KB/s 00:00 sftp> ``` - 將檔案上傳到 nano5 的目前目錄 ``` sftp> put run.sh Uploading run.sh to /home/<USER>/run.sh run.sh 100% 754 263.7KB/s 00:00 sftp> ``` ### `sftp` 命令搭配參數的範例如下: | 指令 | 解釋 | | ---- | ---- | | sftp> `?` | 列出 sftp 所有指令 | | sftp> `ls` | 列出 nano5 目前目錄下的檔案及目錄 | | sftp> `get <REMOTE_PATH>` | 將檔案下載至地端的目前目錄 | | sftp> `put <LOCAL_PATH>` | 將檔案上傳至 nano5 的目前目錄 可搭配使用選項:<br>`-p` 保存修改的時間、讀取的時間、原始檔案的類型<br>`-r` 複製個目錄(含子目錄) | | sftp> `quit` | 離開 sftp | | sftp> `cd` | 更改遠端目錄至 | | sftp> `pwd` | 顯示遠端目前工作目錄 | | sftp> `lcd` | 更改地端目錄至 | | sftp> `lpwd` | 顯示主機目前工作目錄 | ::: ## 使用 `scp` 命令 :::spoiler 1. 輸入命令 ``` scp -P 2222 <LOCAL_PATH> <USER>@nano5.nchc.org.tw:<REMOTE_PATH> ``` 2. Login method:輸入 `1`--`3` 任一選項,選擇雙因子認證方式。 3. Password:輸入「iService 主機帳號密碼」。 完成雙因子認證後,等待 `scp` 傳輸完成即可。 ![](https://man.twcc.ai/_uploads/H1dEzLOGJl.png) `scp` 命令可搭配使用的參數: - `-p`:保存修改的時間、讀取的時間、原始檔案的類型。 - `-r`:複製整個目錄(含子目錄)。 :::

Import from clipboard

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lost their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.


Upgrade

All
  • All
  • Team
No template.

Create a template


Upgrade

Delete template

Do you really want to delete this template?

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Sign in via SAML

Help

  • English
  • 中文
  • 日本語

Documents

Tutorials

Book Mode Tutorial

Slide Example

YAML Metadata

Resources

Releases

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions

Versions and GitLab Sync

Sign in to link this note to GitLab Learn more
This note is not linked with GitLab Learn more
 
Add badge Pull Push GitLab Link Settings
Upgrade now

Version named by    

More Less
  • Edit
  • Delete

Note content is identical to the latest version.
Compare with
    Choose a version
    No search result
    Version not found

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitLab

      Please authorize HackMD on GitLab

      Please sign in to GitLab and authorize HackMD to access your projects. Learn more

       Sign in to GitLab

      Push the note to GitLab Push to GitLab Pull a file from GitLab

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Available push count

      Upgrade

      Pull from GitLab

       
      File from GitLab
      File from HackMD

      GitLab Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Upgrade

      Danger Zone

      Unlink
      You will no longer receive notification when GitLab file changes after unlink.

      Syncing

      Push failed

      Push successfully