Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > are scp and sftp in 10.0.1?

are scp and sftp in 10.0.1?
Thread Tools
macunix
Junior Member
Join Date: Oct 2000
Location: boston ma
Status: Offline
Reply With Quote
Apr 22, 2001, 03:37 PM
 
ssh works fine. however if i try scp i get a 'write failed,broken pipe'
msg and sftp 'command not found'. does 10.0.1 include the full ssh suite
or just parts of it? what else might cause scp to give that msg? the
host i'm trying to scp to is one where scp works fine with NiftyTelnet.
     
Eugene
Senior User
Join Date: Nov 2000
Location: Berkeley, CA
Status: Offline
Reply With Quote
Apr 22, 2001, 04:09 PM
 
I haven't had any probems with scp with OS X. I suggest downloading the latest OpenSSH anyway. There's a great step-by-step how-to on www.stepwise.com.
     
P
Moderator
Join Date: Apr 2000
Location: Gothenburg, Sweden
Status: Offline
Reply With Quote
Apr 23, 2001, 05:40 AM
 
They're there, but not enabled. Edit the /etc/ssh-config file and uncomment the apropriate line.
The new Mac Pro has up to 30 MB of cache inside the processor itself. That's more than the HD in my first Mac. Somehow I'm still running out of space.
     
macunix  (op)
Junior Member
Join Date: Oct 2000
Location: boston ma
Status: Offline
Reply With Quote
Apr 23, 2001, 09:53 AM
 
thanks guys, a couple more questions. actually i do have scp, it was one particular
host (the one where i really need scp since ftp is disabled) that gives the
'write failed-broken pipe' msg. on another host scp works fine. so now i gotta
figure out what's the difference. again, on the secure host with no ftp Nifty
Telnet scp in OS9 works fine.

as for uncommenting the 'appropriate line',my ssh_config is below and *every*
line is commented out, and i sure don't see anything referring to scp or sftp.
maybe i'm being incredibly dense, but an explanation of the lines in that file
wd be appreciated.....tom

[localhost:/etc] root# more ssh_config
# This is ssh client systemwide configuration file. This file provides
# defaults for users, and the values can be changed in per-user configuration
# files or on the command line.

# Configuration data is parsed as follows:
# 1. command line options
# 2. user-specific file
# 3. system-wide file
# Any configuration value is only changed the first time it is set.
# Thus, host-specific definitions should be at the beginning of the
# configuration file, and defaults at the end.

# Site-wide defaults for various options

# Host *
# ForwardAgent yes
# ForwardX11 yes
# RhostsAuthentication yes
# RhostsRSAAuthentication yes
# RSAAuthentication yes
# PasswordAuthentication yes
# FallBackToRsh no
# UseRsh no
# BatchMode no
# CheckHostIP yes
# StrictHostKeyChecking no
# IdentityFile ~/.ssh/identity
# Port 22
# Protocol 2,1
# Cipher blowfish
# EscapeChar ~
     
Mactoid
Grizzled Veteran
Join Date: Sep 2000
Location: Springfield, MA
Status: Offline
Reply With Quote
Apr 23, 2001, 10:43 AM
 
try sshd_config. don't know about scp, but i does have a line for sftp.
We hope your rules and wisdom choke you / Now we are one in everlasting peace
-- Radiohead, Exit Music (for a film)
     
tpitts1
Forum Regular
Join Date: Nov 2000
Location: Austell, GA, USA
Status: Offline
Reply With Quote
Apr 23, 2001, 11:20 AM
 
I haven't had any problems with scp or sftp after installing 10.0.1.

Lets say the file I want is on a remote machine:

prompt> scp [email protected]:/path/name/goes/here/* ./

* copies all files in that folder, alternatively scp -r copies recursively
./ this puts it in the dir you happen to be in when getting the files.

Let's put the files on the same host machine:

prompt> scp ./* [email protected]:/path/name/goes/here/

Even better, but not always as easy to understand:
man scp for the manual pages on scp

[This message has been edited by tpitts1 (edited 04-24-2001).]

[This message has been edited by tpitts1 (edited 04-24-2001).]
     
Mactoid
Grizzled Veteran
Join Date: Sep 2000
Location: Springfield, MA
Status: Offline
Reply With Quote
Apr 23, 2001, 01:43 PM
 
Originally posted by tpitts1:
prompt> scp [email protected]:/path/name/goes/here/* /.

* copies all files in that folder, alternatively scp -r copies recursively
/. this puts it in the dir you happen to be in when getting the files.
i think you mean:
prompt> scp [email protected]:/path/name/goes/here/* ./
with a "./" at the end, not a "/.". The "/." would put everything in root.

prompt> scp /* [email protected]:/path/name/goes/here/
likewise this should probably read
prompt> scp ./* [email protected]:/path/name/goes/here/
with a "./*", not a "/*". "/*" will copy everything on every volume mounted on your computer.
I don't mean to nitpick, i'm sure these are just typo's, but I don't want it to cause any confusion.
We hope your rules and wisdom choke you / Now we are one in everlasting peace
-- Radiohead, Exit Music (for a film)
     
tpitts1
Forum Regular
Join Date: Nov 2000
Location: Austell, GA, USA
Status: Offline
Reply With Quote
Apr 24, 2001, 10:42 AM
 
Thanks for noticing that. That will teach me for not going to the command line and looking at my history. A little reversal of syntax can be a killer, sorry for any confusion. I have made the changes in my post to reflect the right answer.
     
macunix  (op)
Junior Member
Join Date: Oct 2000
Location: boston ma
Status: Offline
Reply With Quote
Apr 24, 2001, 11:13 PM
 
my problem is not the syntax, but that it doesn't work on one particular host
that is important to me. it's the first one i tried, which had me thinking maybe
scp was not working at all, but now i see scp works fine with other hosts.
so it's a specific problem- a machine where i can scp from NiftyTelnet but
not from the X command line. msg is 'write failed-broken pipe'
     
Since EBCDIC
Grizzled Veteran
Join Date: Sep 2000
Location: San Francisco
Status: Offline
Reply With Quote
Apr 25, 2001, 04:59 AM
 
Hi again, Tom. (Please forgive the gentle beating about the head and shoulders I gave you in another thread.)

Tell us more about this particular machine, the one which seems to be having troubles with scp. What OS is it running? What versions of sshd does it have? (Any relevant questions I've missed?)

------------------
Since EBCDIC
Make every post count!
Since EBCDIC
Using Macs since they were Lisas.
     
macunix  (op)
Junior Member
Join Date: Oct 2000
Location: boston ma
Status: Offline
Reply With Quote
May 3, 2001, 09:21 AM
 
>Tell us more about this particular machine, the one which seems to be having
>troubles with scp. What OS is it running? What versions of sshd does it have?
>(Any relevant questions I've missed?)

well, i still can't scp to the one machine 'zathras' (a departed sysadmin gave all
our servers Babylon-5 names ). actually there's no real problem. zathras won't
accept ftp, which is why i want scp, but i can ssh and then ftp to my mac. would
still like to know what's up, though:

tom@zathras:~ % ssh -V
ssh: SSH Version 2.0.12
tom@zathras:~ % uname -a
IRIX64 zathras 6.5 04151556 IP27

i might just write zathras off as odd (he sure was on B5) but scp with NiftyTelnet
from 9.1 or classic works fine.....tom
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 05:52 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,