
Once you connect to a remote SFTP location on your Linux, macOS, or Bash terminal and you want to come out of it back to the shell prompt? Let's find out different ways you can do it,
Exit SFTP Using Keyboard Shortcut:
This is the most preferred way by developers and system admins, just press Control + Z to exit or quit,
% sftp demo@code2care.org
(demo@code2care.org) Password:
Connected to code2care.org.
sftp>^Zzsh: suspended (signal) sftp demo@code2care.org
%
Exit SFTP Using Command: bye
This one is much easier, just type bye on the sftp> prompt and you will be reverted back to your current terminal prompt (bash, sh, zsh)
sftp> bye
%
- How to Display content of a file in Terminal Screen?
- How to Install CVS Version Control on Linux/Ubuntu
- How to install and Configure sar sysstat tools in Ubuntu Linux
- ls command to list only directories
- [Ubuntu] Search a package and versions using apt command
- zsh hello world example
- Linux Remove or Delete Files and Directories using Terminal Commands
- How to tar.gz a directory or folder Command
- Calculate days between dates using dateutils ddiff command
- How to ls command to output one entry per line [macOS/Linux/Bash]
- 3 Commands to stop Nginx Server
- Create and write file in single Linux/macOS command
- SCP Copy all files from directory to Local Folder
- How to go to the End of File in Nano Editor
- How to remove/delete a directory in Linux/macOs
- How to Copy Entire Directory to another Directory in Linux
- Execute .bin and .run file Ubuntu Linux
- The Date Command and its usage [Linux - Unix - macOS]
- Fix - ssh-copy-id no identities found error
- How to check uptime of Linux/Unix/macOS system/server using console command?
- How to Select All text in vim/vi editor using Keyboard
- Linux: Create a New User and Password and Login Example
- Command to display epoch time Terminal
- How to install curl on Alpine Linux
- How to exit from nano command
- List all Username and User ID using Bash Command - Bash
- Remove Possible Data Loss Message from Microsoft Excel - Microsoft
- Outlook and Hotmail not working - email issue, message not delivered, send receive problem - Microsoft
- [fix] docker exec requires at least 2 arguments - Docker
- How to quit or exit SFTP Prompt on Terminal - Linux
- PowerShell ISE Alternative for Mac - Powershell
- How to get SharePoint Online user details from person or group column using REST API - SharePoint
- How to Restart Apple Silicon based Mac (M1/M2 Chip) in Safe Mode - MacOS