Ask Different (Apple)
Q&A for power users of Apple hardware and software
Latest Questions
7
votes
9
answers
53360
views
Mounting a remote SCP or SFTP share on Mac
I use Fuse4X and ForkLift to mount a remote directory (a dev server). I use PHPStorm to open projects and source (`/Volumes/dev/project_path`), but sometimes it happens that Forklift freezes (in Activity Monitor 100 and more percent cpu). To solve this I have to kill Forklift, remount and reopen pro...
I use Fuse4X and ForkLift to mount a remote directory (a dev server). I use PHPStorm to open projects and source (
/Volumes/dev/project_path
), but sometimes it happens that Forklift freezes (in Activity Monitor 100 and more percent cpu). To solve this I have to kill Forklift, remount and reopen project.
Any idea or tip for better mounting?
nagmanat
(107 rep)
Jul 3, 2012, 02:56 PM
• Last activity: Dec 6, 2024, 12:47 AM
1
votes
1
answers
223
views
Does the scp command on mac not respect the -l (limit) option?
I'm fiddling with `scp` on mac and it _seems_ to me like the `-l` option doesn't work; though I'm also (perhaps more) open to the idea that I'm just misunderstanding or misusing something. I'm not trying to solve a problem that requires limiting the bandwidth of a transfer so I don't need alternativ...
I'm fiddling with
scp
on mac and it _seems_ to me like the -l
option doesn't work; though I'm also (perhaps more) open to the idea that I'm just misunderstanding or misusing something. I'm not trying to solve a problem that requires limiting the bandwidth of a transfer so I don't need alternative suggestions, I'm just curious what's going on with my attempt to use this specific option. Looking for dis/confirmation that this is the behaviour other's are seeing and/or an explanation of what's wrong with my attempt.
I made a 10K file then tried to scp
it to localhost:
with a limit of 1Kb/s thinking it should take ~80 seconds but the output of scp
shows a transfer speed higher than 1Kb/s and the command completes effectively immediately.

xy@xyz exploring-scp % man scp | grep -B1 Limits -l limit. Limits the used bandwidth, specified in Kbit/s.

src=$(mktemp)
cat /dev/random | head -c 10240 > $src
scp -i ~/.ssh/id_rsa -l 1 $src localhost:/tmp/random.bin
My first thought was that maybe it's being "smart" and seeing localhost and skipping the network and therefore skipping with bandwidth limit; but the same thing happens both if I use the explicit IP for localhost, and also if I try to scp
the file from a docker container back to the mac host.
I'm also fairly confident I've used the -l
flag successfully on linux even when copying to/from localhost. (I was fiddling with it a little while ago on linux but it's not convenient right now for me to access a linux machine to try it on).
MacBook Pro (Retina, 13-inch, Early 2015) 2.7 GHz Dual-Core Intel Core i5 8 GB 1867 MHz DDR3 Intel Iris Graphics 6100 1536 MBThanks
slagroom
(11 rep)
Jan 28, 2021, 04:50 AM
• Last activity: Feb 20, 2023, 07:35 PM
11
votes
1
answers
5536
views
Unable to SCP since upgrade to Ventura
Since the upgrade to macOS 13 Ventura, all my attempts to use `scp` from the command line have failed with this error message: ```none subsystem request failed on channel 0 scp: Connection closed ``` I was previously able to do so successfully, so this is not a server problem. I had to update my SSH...
Since the upgrade to macOS 13 Ventura, all my attempts to use
scp
from the command line have failed with this error message:
subsystem request failed on channel 0
scp: Connection closed
I was previously able to do so successfully, so this is not a server problem. I had to update my SSH config to work with my old RSA keys, and SSH login works without a problem now. Why can't I copy files?
miken32
(1224 rep)
Nov 30, 2022, 08:36 PM
• Last activity: Feb 17, 2023, 04:34 PM
0
votes
0
answers
174
views
Does remote copy with scp support the -E flag?
In [this documentation page][1] section titled "Copy a file or folder remotely", Apple says `scp` supports the -E flag, which preserves extended [file] attributes, resource forks, and ACL information. On none of my Macs does scp support this flag. Is this a documentation error or is it really suppor...
In this documentation page section titled "Copy a file or folder remotely", Apple says
scp
supports the -E flag, which preserves extended [file] attributes, resource forks, and ACL information.
On none of my Macs does scp support this flag. Is this a documentation error or is it really supported?
julien_c
(477 rep)
Dec 26, 2019, 12:28 AM
1
votes
1
answers
2244
views
Catalina not allowing me to read-write from remote host? How to fix?
I'm trying to download some files from my remote host using scp and proxyjump, however, I keep getting the dread read-only file system anywhere I try to download my file to... initially I couldn't even touch any files to my directory however I managed to run `killall Finder` and that fixed the latte...
I'm trying to download some files from my remote host using scp and proxyjump, however, I keep getting the dread read-only file system anywhere I try to download my file to... initially I couldn't even touch any files to my directory however I managed to run
killall Finder
and that fixed the latter, however, I still cannot download the necessary files to my directory of choice... does anyone know how to fix this?
scp -r -oProxyJump=I R:remote_file localfile
The above is what I'm using for downloading a file. Where I is an intermediate host, R is the remote host and remote_file is the directory and localfile is my directory, all I get is:
localfile: Read-only file system
Any help would be greatly appreciated!
skidjoe
(121 rep)
Nov 19, 2019, 11:46 PM
• Last activity: Nov 20, 2019, 02:54 AM
1
votes
1
answers
3132
views
Endpoint has been activated through legacy launch on Mac Mini
Asking this here as I don't think it's a Linux problem. My Mac Mini sits on a desktop and is the 'central authority' for all of my backups. I have nine Linux virtual machines on a server on which scripts run nightly to do for example, MySQL dumps and to tarball up attachment directories on my Atlass...
Asking this here as I don't think it's a Linux problem.
My Mac Mini sits on a desktop and is the 'central authority' for all of my backups. I have nine Linux virtual machines on a server on which scripts run nightly to do for example, MySQL dumps and to tarball up attachment directories on my Atlassian servers. The resulting backups are then secure copied across to the Mac overnight, and of course, they're then part of the 'TimeMachine' backup and three times weekly, I swap out an external drive to which the most recent deltas are copied, and take that into my office to sit in my drawer.
It's a bit of a 'clunky' solution that has grown up over the years as my knowledge has increased.
Two days ago, I installed a new VM to run zabbix and that's working well. This meant, of course, the installation of the zabbix agent on all of the Linux machines, and I went all out and got it running on the Mac, too.
This morning, I get an e-mail from the Atlassian server, telling me that it could not scp the backups across, as the host key had changed, and warned me that there may be a 'man in the middle attack'. There wasn't, of course, as only one of my servers is public-facing, and that sits behind one firewall, has firewalld running on it and sends all traffic into the network through a small standalone RHEL server on which firewalld is running. But I follow the advice of the e-mail, and I go to the /home/darren/.ssh/known_hosts file and remove the 'offending' line. Just to be sure, I check the backup script, verify that it's using the correct key files (it is - $HOME/.ssh/id_rsa), and run a bare ssh to the Mac. Boom - connected instantly.
I run the backup script manually on the Atlassian server, and rather than transferring the file to the Mac, I get..
Permission denied (publickey).
lost connection
I decide to hose the private and public keypair and create another pair. I then ssh-copy-id them across to the Mac, and nope - same problem.
On the Mac Mini, in /var/log/syslog, I see:
Aug 25 11:01:59 macmini com.apple.xpc.launchd (com.apple.quicklook): Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.quicklook
So I can only assume that in installing the Zabbix agent on the Mac Mini, something got changed.
Can anyone suggest what it might be, and how to change it back?
EDIT: the output of ssh -v
[darren@server ~]$ ssh -v -i .ssh/id_rsa darren@macos
OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to macos [192.168.1.31] port 22.
debug1: Connection established.
debug1: identity file .ssh/id_rsa type 1
debug1: identity file .ssh/id_rsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.6
debug1: match: OpenSSH_7.6 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-sha1 none
debug1: kex: client->server aes128-ctr hmac-sha1 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<2048<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'macos' is known and matches the RSA host key.
debug1: Found key in /home/darren/.ssh/known_hosts:12
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering public key: .ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 533
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: client_input_global_request: rtype host.ssh-00@openssh.com want_reply 0
Last login: Sat Aug 25 11:51:33 2018 from 192.168.1.11
Darren Matheson
(431 rep)
Aug 25, 2018, 10:04 AM
• Last activity: Dec 13, 2018, 10:00 AM
2
votes
1
answers
235
views
Terminal - how to batch transfer files to other macs
I would like to transfer some files from one computer to other 24 macs (which are protected by an user/pass). It is so tedious to do it manually connecting with Finder, transfer the files and continue with the next one... Is there a way to do it with Terminal (scp or other tool) so that I can just w...
I would like to transfer some files from one computer to other 24 macs (which are protected by an user/pass). It is so tedious to do it manually connecting with Finder, transfer the files and continue with the next one...
Is there a way to do it with Terminal (scp or other tool) so that I can just write an script and see how it's automatically done?
Thanks
dolphin boy
(21 rep)
Nov 6, 2017, 01:01 PM
• Last activity: Nov 6, 2017, 02:08 PM
1
votes
1
answers
716
views
Transferring files using ssh on terminal
I am trying to transfer a file to Computer A (my computer) from Computer B (the remote computer). I have looked through different threads, but nothing is working. First, I log onto Computer B using ssh which works fine. My code for the file transfer is scp userB@hostB:~/Desktop/(file_name) ~/Desktop...
I am trying to transfer a file to Computer A (my computer) from Computer B (the remote computer). I have looked through different threads, but nothing is working. First, I log onto Computer B using ssh which works fine. My code for the file transfer is
scp userB@hostB:~/Desktop/(file_name) ~/Desktop/
when I plug this in, it asks for Computer Bs password, which I enter. Then I get the error
scp: /Users/userB/Desktop/(file_name) : No such file or directory
I know that the file is there, however. What am I doing wrong?
bPelson
(55 rep)
May 16, 2017, 01:42 AM
• Last activity: May 16, 2017, 03:08 AM
1
votes
3
answers
2012
views
Tool that watches files / folders and upload on change on OS X?
I am looking for an SFTP or rsync (?) tool (or script?) that watches a certain folder or certain files and uploads them to a remote server securely on change. The background: I've been using Sublime SFTP for that, it works quite well, but sometimes "forgets" its watching duties. Also, I'm giving Ato...
I am looking for an SFTP or rsync (?) tool (or script?) that watches a certain folder or certain files and uploads them to a remote server securely on change.
The background:
I've been using Sublime SFTP for that, it works quite well, but sometimes "forgets" its watching duties. Also, I'm giving Atom a go as an alternative editor and there are no tools that live up 100% to Sublime SFTP.
Most editor-based SFTP tools just upload files upon save, but that doesn't cover files built buy gulp or CodeKit.
We've been adding
gulp-sftp
to our build scripts, but that also has drawbacks.
So what I've been wondering: isn't there a standalone application that simply can watch files or folders for changes and upload them via SFTP, rsync or scp?
Urs
(487 rep)
Feb 23, 2016, 09:15 AM
• Last activity: Sep 28, 2016, 09:01 AM
2
votes
1
answers
355
views
ssh port forwarding error
I have two Linux servers and one Mac client, and I would like to do SSH port forwarding via local port address on the Mac. In Terminal 1 on the Mac, localhost:~ user1$ ssh -L 8022:server2:22 server1 and from Terminal 2 on the same Mac localhost:~ user1$ scp -P 8022 0.0.0.0:file . works OK. But if I...
I have two Linux servers and one Mac client, and I would like to do SSH port forwarding via local port address on the Mac.
In Terminal 1 on the Mac,
localhost:~ user1$ ssh -L 8022:server2:22 server1
and from Terminal 2 on the same Mac
localhost:~ user1$ scp -P 8022 0.0.0.0:file .
works OK. But if I use another account
user2
on the Mac,
localhost:~ user2$ ssh -L 8022:user1@server2:22 user1@server1
I get the following error on Terminal 2.
localhost:~ user1$ scp -P 8022 0.0.0.0:file .
ssh_exchange_identification: Connection closed by remote host
At the same time, another error message appears in Terminal 1.
channel 3: open failed: administratively prohibited: open failed
Either user1
or user2
does not have any special port forwarding settings in /etc/sshd_config
, /etc/ssh_config
, or ~/.ssh/config
. Both users have access for SSH login to the Mac (i.e., in "Remote Login" panel of System Preference, these users are in the white list).
I don't see any message in /var/log/system.log
.
Which configuration should I check? I use OS X Yosemite.
---
Here is the verbose output of the scp
command.
Executing: program /usr/bin/ssh host 0.0.0.0, user (unspecified), command scp -v -f file
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: /etc/ssh_config line 102: Applying options for *
debug1: Connecting to 0.0.0.0 [0.0.0.0] port 8022.
debug1: Connection established.
debug1: identity file /Users/cta/.ssh/id_rsa type -1
debug1: identity file /Users/cta/.ssh/id_rsa-cert type -1
debug1: identity file /Users/cta/.ssh/id_dsa type -1
debug1: identity file /Users/cta/.ssh/id_dsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.2
ssh_exchange_identification: Connection closed by remote host
Akira Okumura
(45 rep)
Feb 15, 2016, 01:59 PM
• Last activity: Feb 15, 2016, 02:28 PM
1
votes
1
answers
1408
views
Installing bbcp on OS X Yosemite
I'm trying to install [bbcp][1] (which is a fast scp alternative) on MAC, I tried with brew: $ brew install bbcp Error: No available formula for bbcp ==> Searching formulae... ==> Searching taps... homebrew/head-only/bbcp It looks like the [bbcp binaries][2] are not available for OS X! Any idea how...
I'm trying to install bbcp (which is a fast scp alternative) on MAC, I tried with brew:
$ brew install bbcp
Error: No available formula for bbcp
==> Searching formulae...
==> Searching taps...
homebrew/head-only/bbcp
It looks like the bbcp binaries are not available for OS X! Any idea how to port them?
bachr
(133 rep)
Sep 17, 2015, 10:03 AM
• Last activity: Sep 17, 2015, 10:22 AM
11
votes
7
answers
25117
views
Cyberduck replacement for SCP transfers
Since Cyberduck uses Java, it's out for me. Any replacement for Mavericks that is good, has similar to WinSCP functionality and has an option to try before I buy?
Since Cyberduck uses Java, it's out for me.
Any replacement for Mavericks that is good, has similar to WinSCP functionality and has an option to try before I buy?
Jeroen Wiert Pluimers
(739 rep)
Apr 2, 2014, 08:57 PM
• Last activity: Sep 4, 2015, 11:03 AM
1
votes
1
answers
814
views
Recommendation for a gui scp client
I'm looking for a recommendation for a GUI SCP client that supports private keys. All of the ones I find don't support private keys. Thanks
I'm looking for a recommendation for a GUI SCP client that supports private keys.
All of the ones I find don't support private keys.
Thanks
Elan Hasson
(113 rep)
Nov 10, 2014, 10:47 PM
• Last activity: Nov 10, 2014, 11:29 PM
3
votes
2
answers
5224
views
Connecting to a remote machine with a public key using Fugu
How do I connect to a remote server with a public key using [Fugu](http://rsug.itd.umich.edu/software/fugu/)? I'm using Amazon EC2, so I have `.pem` public key, but I'm totally new to Fugu and I can't see any form or input for the public key. In the "connect to" text input shall I enter in my public...
How do I connect to a remote server with a public key using [Fugu](http://rsug.itd.umich.edu/software/fugu/) ? I'm using Amazon EC2, so I have
.pem
public key, but I'm totally new to Fugu and I can't see any form or input for the public key. In the "connect to" text input shall I enter in my public DNS?
Woho87
Jan 11, 2011, 07:47 AM
• Last activity: Feb 19, 2013, 09:26 PM
2
votes
1
answers
2751
views
scp (secure copy) in lieu of vmware disk-sharing
Booting down the linux VM, removing the share, disabling sharing, followed by enabling sharing, adding the share, and booting up the linux Vm finally followed by reinstalling vmware tools do not make the shared drive appear under /mnt/hgfs. My question is: I'd like to use old-fashioned scp to copy a...
Booting down the linux VM, removing the share, disabling sharing,
followed by enabling sharing, adding the share, and booting up the linux Vm
finally followed by reinstalling vmware tools
do not make the shared drive appear under /mnt/hgfs.
My question is: I'd like to use old-fashioned scp to copy a tar archive.
On the linux VM: scp FROM/dir/file.tar ~/.
What should FROM be?
Calaf
(4429 rep)
Apr 2, 2012, 11:58 PM
• Last activity: Apr 3, 2012, 03:10 PM
13
votes
1
answers
13186
views
How can I allow incoming SSH (SCP) connections?
How can I allow incoming SSH connections on my mac (Mac OS X 10.6.4) from other machines on the same network? Every time I'm trying to `scp` something on the machine I get a **Connection refused** error.
How can I allow incoming SSH connections on my mac (Mac OS X 10.6.4) from other machines on the same network?
Every time I'm trying to
Every time I'm trying to
scp
something on the machine I get a **Connection refused** error.
Alex
(1432 rep)
Sep 20, 2010, 07:14 AM
• Last activity: Jan 4, 2012, 06:51 PM
Showing page 1 of 16 total questions