how to execute a scp command with the user name and password in one line [closed] - terminal

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I would like to put the password in on one line when running scp in my terminal
scp user1#xxx.xxx.x.5:sys_config /var/www/dev/

Thanks for your feed back got it to work I used the sshpass tool.
sshpass -p 'password' scp user1#xxx.xxx.x.5:sys_config /var/www/dev/

Using sshpass works best.
To just include your password in scp use the ' ':
scp user1:'password'#xxx.xxx.x.5:sys_config /var/www/dev/

Related

How to do password-less login using plink? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I'm able to login passwordless with putty after adding the key to my server and configuring putty (gui) with session. I'm unable to login passwordless with plink. How do I do this?
Use -i option to use the particular private key or just use -load option with the session that you created in putty gui.

how to connect to an ftp server? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
How do I connect to an FTP server using a command prompt?
The ftp site I am trying to connect to is
ftp.bom.gov.au/anon/gen/
I used to be able to type in ftp ftp.bom.gov.au/anon/gen/ in the command prompt and it would challange me for a username and password
but now it says unknown host.
I can still get to it from a browser
ftp://ftp.bom.gov.au/anon/gen/
Is there something I am missing?
Thanks
You can't specify the path in the command. You should use ftp ftp.bom.gov.au and then cd /anon/gen/ to change the path.

Ubuntu two commands in one line doesn't behave as expected [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I'm logged in as root and i do:
su killyz && whoami
the user will switch but the whoami won't print until i Ctrl+D, why is that?
su opens a new shell and won't exit until that shell is closed, via Ctrl-D or some other method.

How to copy all the content of an EC2 server to OSX [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have an EC2 instance I"m trying to copy all the data inside of it into my drive.
the command
"scp -r / /users/seraph/targetdirectory"
does not work and returns
"no such file or directory"
On the OS X machine:
scp -r remotehost:/ /some/local/path
Better yet, use rsync so that you can support resume and deltas:
rsync -e ssh -avz remotehost:/ /some/local/path

What is the syntax for sftp -P (program) switch? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
What is the syntax for the -P switch in sftp?
I am trying ...
sftp -P /home/me/dev_bin/ssh user#hostname
... but the result is a usage statement ...
Attaching to /home/me/dev_bin/ssh...
usage: ssh [...]
I think that ssh is not seeing the rest of the command line.
Edit: This was a stupid question, but I am undecided about deleting it. Deleting it will preserve my vanity, but leaving it here would help some other victim of poor reading comprehension to find the answer.
ssh -P port Specifies the port to connect to on the remote host. (Port should be a number.)
I think you're looking for
ssh -S program Name of the program to use for the encrypted connection. The program must understand ssh(1) options.
Both quotes (except for the parenthesized comment) extracted from man sftp

Resources