Tagged Questions
2
votes
1answer
29 views
ssh/scp works but rsync just constantly says “no”
Hi I have a windows 2003 server that I need to back up onto a linux client so I install cygwin on the Win2k3. On the Win2k3 I have enabled ssh, scp but (because the Win2k3 server uses an customised ...
0
votes
1answer
33 views
Indirect SCP connection
I use ssh and scp to connect to a remote server.
Due to a ip/proxy limitation on the remote server, I have to connect first to another server. For example, if I want to connect to "SERVER-A", I have ...
0
votes
2answers
45 views
scp hangs on SSH2_MSG_SERVICE_ACCEPT received
I frequently scp my file to remote host. But suddenly it started taking more than 30 seconds to copy 20kb file.It used to take not more than half a second.
After referring to some blog I appended
...
3
votes
1answer
148 views
scp and compress at the same time, no intermediate save
What is the canonical way to:
scp a file to a remote location
compress the file in transit (tar or not, single file or whole folder, 7za or something else even more efficient)
do the above without ...
1
vote
1answer
134 views
Transferring Files SSH SCP Error Message: 'Stdin: is not a tty'
I am using a Macbook SSH terminal and generated RSA key pairs and uploaded remote id_rsa.pub with approved permissions. I can connect with remote Apache web server. I can create, open, move, modify ...
10
votes
4answers
235 views
Does a `scp` transfer close when I close the shell?
I have scp transfer (from one remote server to another), that is quite big.
So maybe I want close the computer from which I executed this command, will this end the transfer? I have ssh access to ...
0
votes
1answer
89 views
I'm only allowing pubkey auth via ssh. How can I still log in with password?
vi /etc/ssh/sshd_config
egrep -i 'Pubkey|Password|Listen' /etc/ssh/sshd_config | grep -v '^#'
ListenAddress 0.0.0.0
PermitRootLogin without-password
PubkeyAuthentication yes
...
2
votes
2answers
189 views
Transfer a file from Android to a PC (not in the same network)
If I were connected by wifi in my network, there isn't any problem because with AirDroid I can access the sdcard files using the browser.
However when I am out, how can I transfer a file from my ...
4
votes
2answers
422 views
Scp doesn't work in cron
Yeah, I know it's classic. I've googled it all around, but still it doesn't work. I have the following script:
#First go to SVN repo folder
cd $svnrepos
# Just make sure we have write access to ...
2
votes
2answers
128 views
I can ssh into a remote machine but I can't use scp to copy local stuff to the remote machine
I'm using a remote machine, which is in a lab
and the administrator ask a RSA public key and then I can login into that machine
using a passphrase I set
now I want to use scp to copy local stuff to ...
3
votes
3answers
687 views
Copy over ssh and execute commands in one session [duplicate]
Possible Duplicate:
Using an already established SSH channel
Here is my sync script:
ssh user@remote.host /etc/init.d/some_service stop
scp user@remote.host:/var/some_service/events ...
1
vote
1answer
866 views
SCP and/or SSH command with password in line
First, I'm TRYING to use rsa keys because I'm using the script to create RSA keys, but initially I have to connect to the remote machine to pass over the newly generated authentication key. Having ...
4
votes
1answer
422 views
scp permission denied after 'hardening' with bastille
I recently 'hardened' two Ubuntu servers using Bastille, and now I get permission denied: scp whenever I try to scp files in.
SSH login works fine.
I've tried adding an /scp-dump folder with 777 ...
3
votes
1answer
220 views
Configure SCP access for login without a local account
Can I set up accounts that can do SCP that are NOT local users (i.e. users with an entry in /etc/passwd)? I've tried googling for SCP "without PAM authentication" or alternative authenication for sshd ...
4
votes
2answers
845 views
How can I send single file to multiple remote sites at the same time?
Can scp be used to send a single file to multiple remote servers at the same time? If so, how? If not, what's the alternative?
2
votes
4answers
4k views
Transfer files using scp: permission denied
I try to transfer files from remote computer using ssh to my computer :
scp My_file.txt user_id@server:/Home
This should put My_file.txt in the home folder on my own computer, right?
I get
...
2
votes
2answers
166 views
Interesting Secure Copy Behavior
I'm not entirely sure where to ask this question, so if this is not the right place just let me know and I'll move it.
Today I was trying to using recursive scp to copy a directory between two Linux ...
3
votes
2answers
865 views
Execute remote script with local parameter value
How can I automatize this task?
1) You are at A.
2) You ssh into B.
3) You run a script at B, that needs a parameter known at A.
First, I thought perhaps I could send the value when I opened the ...
6
votes
3answers
328 views
Send an email any time an SSH key is used
I have about 30 nearly-identical CentOS 6 servers that I need to be able to push out updated config files automatically using an rsa key to log in as root. Usually this will just be rsync, but ...
6
votes
4answers
4k views
Is there ever a reason to use scp instead of rsync?
Is there a reason to use scp instead of rsync? I can see no reason for using scp ever again, rsync does everything that scp does, with more safety (can preserve symlinks etc).
5
votes
3answers
3k views
How to copy with SCP between two servers using key auth?
I can log in via SSH using key authentication to SERVER1 and SERVER2. However, I can't copy files between the two servers. Why? How can I copy between them? (the data that I have to copy is bigger ...
1
vote
1answer
914 views
Why is this scp command creating a directory one level up?
I am trying to copy a file from one machine to another machine via ssh. Both machines are Ubuntu servers. Both machines have exchaged keys so that they can log into each other without passwords.
The ...
2
votes
3answers
258 views
Where did scp put these files?
I ran an scp command to download some files from an SSH server. Instead of using the . to put it in the current folder, I accidentally typed *. It looks like scp copied the files and put them ...
1
vote
3answers
2k views
how to find out the ip of an ssh HostName
Is there a simple way to retrieve the IP of a HostName from an ssh config on the command line? Many times I have to use scp and would like to connect to a machine, but I remember only the HostName.
5
votes
2answers
160 views
Provide user name when using vim with scp
I was reading about SSH here http://blogs.perl.org/users/smylers/2011/08/ssh-productivity-tips.html and found that you can use vim to directly modify a file on a remote server that you can ssh into. ...
5
votes
0answers
196 views
Copy file over existing SSH session? [duplicate]
Possible Duplicate:
SSH easily copy file to local system
Let's give the following example:
I've connected to ssh user@myserver.com.
I need to copy a local file over to the remote ...
3
votes
3answers
810 views
SCP works, but SSH doesn't (over wifi)
As the title says, when I'm using wifi at my office, I'm able to copy files to and from my server using SCP, but for some reason SSH is non-responsive. It just hangs, doesn't print anything, and I ...
3
votes
3answers
6k views
How to pull a file from a server using scp?
I am on machine A and want to pull a file from machine B.
A$ scp <myuserid>@hostB:<path of file in B> .
it says that:
scp: <path of file in B>: No such file or directory
But on ...
0
votes
3answers
3k views
How to copy files from linux to windows using winscp from a folder which contains millions of files
I need to copy files from a linux machine to a windows machine where the only ports which can be open are for SSH (22).
I can connect to the linux machine using WinSCP but the problem is once I try to ...
4
votes
2answers
4k views
“Permission denied, try again” while transferring files with scp
I have two servers (A and B) and my local machine. I'm trying to transfer a file from server A to server B.
From server A:
scp ./backup.tar user@server.b:/home/public/
Permission denied, please try ...
16
votes
3answers
4k views
Restricting an SSH/SCP/SFTP user to a directory
Is there a simple way to restrict an SCP/SFTP user to a directory? All methods that I've come across require me to set a chroot jail up by copying binaries, but I don't think that should be necessary.
...
12
votes
3answers
2k views
What's the difference between SFTP, SCP and FISH protocols?
I used to think SCP is a tool to copy files over SSH, and copying files over SSH is called SFTP, which is itself a synonym to FISH.
But now as I was looking for a Total Commander plugin to do this in ...
1
vote
2answers
301 views
How to specify where files are transferred to using ssh
I know how I can send files to a specific directory on a remote server using ssh, but I don't know how to specify it.
2
votes
2answers
623 views
Puzzle: transfering files between two servers (ssh, ftp, http multipart…)
A puzzle: files being uploaded in realtime by SCP to SERVER1 need to be transfered to SERVER2.
But:
SERVER1 doesn't actually have network access to SERVER2 (NAT), however SERVER2 has SSH access to ...
4
votes
5answers
385 views
Sftp interface to Scp
I have a linux based router that doesn't have the SFTP server installed. More specifically, when I sftp user@ipaddress I get a sh: /user/libexec/sftp-server: not found error. My interest isn't trying ...
