Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Can someone help me with commands? I'm trying to upload file to server based on linux.
You need an scp client. Putty is not one. You can use WinSCP or PSCP. Both are free software.
"C:\Program Files\PuTTY\pscp.exe" -scp file.py server.com:
file.py will be uploaded into your HOME dir on remote server.
or when the remote server has a different user, use "C:\Program Files\PuTTY\pscp.exe" -l username -scp file.py server.com:
After connecting to the server pscp will ask for a password.
Use WinSCP for file transfer over SSH, putty is only for SSH commands.
Related
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I need to transfer files from one server to the other. Normally I just download the files and then upload em to the new server using FTP.
Now I am facing a gazillion files with over 15GB data. Is it possible to download em directly from the new server, thereby skipping a step? I have full control over the second server, but just FTP rights on the old server.
Thanks
You could use wget on the new server to download the data from the old server. Something like
$ wget -r -N -l inf 'ftp://old.example.com/'
should do it. Consult the man page if you need anything more specific; wget is quite powerful.
Alternatively, FTP can be directly used to transfer from server to server. Since FTP uses separate control and data connections, the data connection can be established to a different host than that from which the control connection originates. This is done by switching one of the servers into passive mode. I think that SecureFX supports that mode of operation by opening connections to both servers and dragging-and-dropping files between them. However, I don't know if there is any free software that can do that.
If you have commandline access via SSH to your new server, just open a session on the new server and within that session do an FTP "mget" from the old server.
There is a summary of commandline FTP here: http://www.cyberciti.biz/faq/linux-unix-ftp-commands/
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am trying to connect to a server(linux) via SSH from a windows m/c via putty.
I can connect to the server from my m/c using putty but when i try to do the same from another machine, i get an error.
All configs are the same. Can you please give some pointers as to what might be the issue.
Note: I am able to do an FTP(port 21) to the same server via WinSCP on both machines. It's just putty which is not doing SSH on the other m/c. It's fine on my m/c.
Any directions would be much appreciated.
Thanks.
Can you log in with WinSCP via SFTP/SCP? If not, then the server might be firewalled against that other machine. Or maybe the two machines are connected to the server with different interfaces and SSH is configured to only listen to one of them. Check the firewall on the server and, for good measure, the firewall on your client.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Is secure FTP (sftp) using SSH (port number 22) always possible when there is ssh available? Currently I'm using PuTTY for SSH. I want to upload files using CuteFTP Pro.
Or do I need ftp server on the server-side?
For sshd (OpenSSH SSH daemon), its a configuration option, which by default is switched on. Look out for the line
Subsystem sftp /usr/lib/ssh/sftp-server
in /etc/ssh/sshd_config. To disable just remove that line.
No, on the server side you need an sftp-binary as well. OpenSSH ships one they call sftp-server. Usually resides in /usr/lib/openssh/sftp-server (on a Debian machine for example)
CuteFTP has support for sftp. But keep in mind that your server needs sftp-server on that end first.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am using PuTTY to connect my Windows machine with remote machine and I am able to connect to remote machine but when I am using SCP command to download some files to my local Windows machine it is saying:
ssh: connect to host XXXXXXXXXX port 22: Connection refused
lost connection
I am writing this command:
scp * username#mywindowsmachine:~/Desktop
Use winscp to do this :
http://winscp.net/eng/docs/introduction
WinSCP will enable you to exchange files with the server while ssh is used to issue shell commands on this server (and is powerless in your case as your local windows machine can't probably answer to its ssh connections).
You would use scp if you were on a shell but as you're on windows (and probably don't use things like cygwin), you'll find winscp to be the easiest solution.
if you manage the server you are trying to connect to, start the SSHD with debugging enabled you will see exactly why it is refusing the connection
IF sudo chown -R www-data:webmasters/dir/dir/dotfile - possibly need to give permissions to your bash "user" instead via ssh.
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 6 years ago.
Improve this question
how to download folder(contains folder inside folder and files) from putty using ssh client
i want download entire Dump to local Drive...
can any one guide me ...
You need to use some kind of file-transfer protocol (ftp, scp, etc), putty can't send remote files back to your computer. I use Win-SCP, which has a straightforward gui. Select SCP and you should be able to log in with the same ssh credentials and on the same port (probably 22) that you use with putty.
You cannot use PuTTY to download the files, but you can use PSCP from the PuTTY developers to get the files or dump any directory that you want.
Please see the following link on how to download a file/folder:
https://the.earth.li/~sgtatham/putty/0.60/htmldoc/Chapter5.html
If you need to download a folder via a Linux command try this out:
$ scp your_username#remotehost.edu:foobar.txt -r /some/local/directory
Sources:
http://www.linuxquestions.org/questions/linux-general-1/useing-scp-to-copy-entire-directories-with-sub-folders-362842/
http://www.hypexr.org/linux_scp_help.php
Related Post:
How to download a file from server using SSH?
8)
I use both PuTTY and Bitvise SSH Client. PuTTY handles screen sessions better, but Bitvise automatically opens up a SFTP window so you can transfer files just like you would with an FTP client.