DEV Community

Hamza Afridi
Hamza Afridi

Posted on

3

Setting up sftp on iterm and terminal on mac

When I switched to MacOS as my main development machine, I quickly noticed that the standard terminal or iTerm2 wouldn't autocomplete SFTP commands when using the TAB key. Additionally, the arrow up and down keys didn't work either. This issue arises because MacOS doesn't come with OpenSSH built-in.

To install OpenSSH on your Mac, follow these steps:

  1. First, check the version of SFTP you are using by entering the following command in the terminal:
which sftp
Enter fullscreen mode Exit fullscreen mode

The output will look something like this:

/usr/bin/sftp
Enter fullscreen mode Exit fullscreen mode
  1. Install OpenSSH using Homebrew:
brew install openssh
Enter fullscreen mode Exit fullscreen mode
  1. After the installation, verify if SFTP is installed correctly by entering:
brew list openssh
Enter fullscreen mode Exit fullscreen mode

After doing this, you can enjoy faster development and server access.

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay