Forrest logo
back to the sshfs tool

ssh:tldr:af8c7

ssh: Follow symbolic links.
$ sshfs -o follow_symlinks ${username}@${remote_host}:${remote_directory} ${mountpoint}
try on your machine

This command is used to mount a remote directory onto a local machine using SSH File System (SSHFS). Here is a breakdown of the command:

  • sshfs: It is the command-line tool used to mount remote directories over SSH.
  • -o follow_symlinks: This option allows following symbolic links in the remote directory when accessing files or directories.
  • ${username}@${remote_host}: It specifies the username and hostname (or IP address) of the remote host you want to connect to. The ${username} and ${remote_host} are variables that you need to replace with the actual values.
  • ${remote_directory}: It is the path to the remote directory you want to mount. Again, ${remote_directory} is a variable that you need to replace with the actual directory path.
  • ${mountpoint}: It specifies the local mount point where the remote directory will be mounted. Similar to the previous variables, ${mountpoint} is a variable that should be replaced with the desired local directory path.

So, when you run this command with the appropriate values for ${username}, ${remote_host}, ${remote_directory}, and ${mountpoint}, the remote directory will be mounted on your local machine at the specified mount point.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the sshfs tool