Cosmil connects to servers itself, so a server opens in a pane like any folder on your Mac, with no drive to mount. It speaks SFTP, FTP, FTPS, WebDAV, and SMB. You can copy files to and from a server, between servers, and open and edit server files in your usual apps.
Connecting to a server#
Choose Go › Connect to Server… (⇧⌘K), or click Connect to a Remote Location in the sidebar’s Remote section. Once you’ve connected to something, a + on the Remote heading does the same.
Choose the Protocol, then fill in the Server and your sign-in details. The fields change with the protocol and with Authenticate With:
- SFTP signs in with a password, a private key, or your SSH agent. Leave Private Key blank to use your standard key in
~/.ssh, or type the path to another one. - FTP and FTPS sign in with a password, or as Anonymous for public servers.
- WebDAV connects to a collection on a web server. Fill in its Path as well as the server, and sign in with a password or a token, or with None for public collections. Use WebDAV (HTTP) for a device on your own network that doesn’t use HTTPS. To sign in to one with a password or token, tick Send Credentials Over HTTP under Advanced; without HTTPS, they’re sent unencrypted.
- SMB connects to Windows shares and most NAS boxes. Leave Share blank to see every share the server offers. A share opens at its top folder.
You can paste a whole address, such as sftp://[email protected]/projects, into Server, and Cosmil fills in the rest of the form from it. In an SMB address, such as smb://nas.local/Media, the first folder is the share.
Advanced has the Port and, except for SMB, the Initial Folder to open, where ~ is your home folder on the server, plus a few settings for particular protocols.
Give the location a name and a color if you like, then click Connect. The location opens in the active pane, and shows in the sidebar’s Remote section.
Saving a location#
Tick Save this location to keep it in the sidebar, with its password, the next time you open Cosmil. Cosmil keeps saved passwords in your keychain. A location you don’t save is listed under This Session and forgotten when you quit. To save it later, hover over it and click the pin button, or right-click it and choose Save Location.
Each location has a light showing whether it’s connected. Click a saved location to connect and open it, or ⌘-click to open it in a new tab. Right-click it to:
- change its Color
- Disconnect or Eject it
- Edit… its details
- Remove Saved Location, which deletes its saved password
Edit… opens the connect dialog with the location’s details filled in. Leave the password blank to keep the saved one. If you change only the name, color, settings, or initial folder, Save saves straight away. If you change the server, user, port, or how you sign in, or type a new password, Cosmil connects first to check the details. A location moved to another server, user, or port replaces the old one in the sidebar.
If a connection drops, the pane says the location is not connected. Click Reconnect. If the saved password no longer works, the connect dialog opens so you can type it again. Nothing reconnects on its own.
Finding servers on your network#
Network, at the bottom of the Remote section, lists the devices on your network that share files. Open a device to see what it shares, or to fill in the connect dialog for it.
A server that doesn’t announce itself won’t be listed, but you can still connect to it by address.
Trusting servers#
The first time you connect to an SFTP server, Cosmil records its key in ~/.ssh/known_hosts, as the ssh command does, and checks it on every later connection. If the key changes, Cosmil refuses to connect; see Troubleshooting.
If an FTPS server’s certificate isn’t trusted by your Mac, for example because it signed it itself, the connect dialog shows the reason and the certificate’s fingerprint. If you recognize it, click Trust and Connect. Cosmil then accepts only that certificate for that location.
Previewing files#
Selecting a file never downloads it. In the preview pane, images, videos, PDFs, and songs up to about 8 MB have a Download to preview button. Press Space to download the selection, up to about 8 MB a file, and open it in Quick Look.
Opening and editing files#
Double-click a file, or use Open With, and Cosmil downloads a copy and opens it. It asks first if the file is larger than 256 MiB (about 268 MB).
When you save your changes in the other app, Cosmil uploads them to the server about a second later. Each upload shows in the Job Manager, and a Saved toast appears when it’s done. An edited file has a small badge beside its name while its changes are waiting or uploading.
If the file changed on the server since you opened it, Cosmil doesn’t overwrite it. A toast says it changed on the server, and your edit stays on your Mac until you click Upload Anyway. If an upload fails, click Retry in its toast.
For long editing sessions on big files, it can be safer to copy the files to your Mac, work on them there, and copy them back.
Copying and deleting#
Copy, move, and drag files between a server, your Mac, and other servers as you would between folders; each transfer shows in the Job Manager. See Copying and Moving. Dragging files from a server to Finder or the desktop downloads them once you drop them.
Servers have no Trash. In a remote location, Move to Trash becomes Delete Immediately…, and it always asks before deleting, because the files can’t be put back.
Tags, Share, and Open in Terminal aren’t available on servers. To have panes on a server outlined in its color, see Location Indication.
Cosmil