putty - psftp connection refused - putty

Im trying to connect with PSFTP.exe but I got error, if I do the same in FTP in cmd line or Filezilla it works good. I have tried other ftps but nobody works.
C:\putty>psftp.exe ftp.mozilla.org
Fatal: Network error: Connection refused
Any suggestions? Do I need to start putty.exe or configure psftp in some way that I have missing?
Im working in Windows 7 64-bit

That's because PSFTP is not an FTP client, it's an SFTP client. Different protocols.

Related

Transfer Files through FTP in Windows Batch Scripts having Private Key

I am using these command to transfer a file to an SFTP location.It has an private key(Puttygen) with
passphrase.
open ftp://%1%:%2%#%3%/ -explicittls -certificate="32:4b:5e:a7:05:b9:e4:2d:7d:44:cb:c1:0e:ee:0e:17"-privatekey=D:\SSIS_DEV\DBTeam\Transfer\Rural\Private.ppk
put %4%
I am getting a timeout error while connecting.
exit
You want to use SFTP, but use FTP (ftp://) protocol in the session URL.
Use sftp:// instead:
open sftp://%1%:%2%#%3%/
FTP and SFTP are two completely different and incompatible protocols. You get the timeout, because you are trying to connect to the FTP port, which the server does not listen on.

How to fix "mount_smbfs: server connection failed: No such file or directory"

Use command "mount_smbfs //username:password#server/Shared /Volumes" to connect with Windows Server, but it return with "mount_smbfs: server connection failed: No such file or directory"
>>mount_smbfs //username:password#server/Shared /Volumes
mount_smbfs: server connection failed: No such file or directory
I can not use "Finder->Go->Connect to Server" neither. Each server I connect to as "smb://server" would return an error "There was a problem connecting to the server".
Beside, I could ping the server successfully.
The real problem is that SMB didn't work in My Mac, and someone give a workaround to fix it.
You can visit it

ngrok FTP tunneling issue

I have installed many FTP Servers on a Windows machine and set ngrok for FTP tunneling.
C:\path\to\ngrok> ngrok tcp 21
Using linux, i am able to establish an FTP connection and browse the directories ONLY with the installed ftp client.
$ ftp
ftp> open 0.tcp.ngrok.io port_here
The problem is that FileZilla, Classic FTP File Transfer Software, Chrome & Firefox extensions, failed.
FileZilla output:
Command: LIST
Response: 150 Opening ASCII mode data connection
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
I wonder why i can't browse using FileZilla, but with the ftp Linux command works well.
Thank you.
Problem solved in FileZilla via :
Edit > Settings > Connection > FTP > Passive mode, and select "Fall back to active mode" and Bingo !
The same technique can be applied to the other FTP clients.

FTP stopped working on Linux server

Our FTP service from our server just stops working and we have no idea why each time
we get this error: Status: Connection attempt failed with "ECONNREFUSED - Connection refused by server". Error: Could not connect to server
any ideas where to check in server?
If you are sure that the server is actually running. Try to restart it using something like:
service vsftpd restart
You need to replace vsftpd with whatever FTP you might be using. See if you get any erros when doing this.

Connect to a FTPS server within shell script

I'm trying to connect to a FTPS (explicit TLS FTP) server within a shell script and i'm kinda confused.
I tried using the regular FTP command, but i get 534 error "policy requires SSL" and 504 "Security mechanism not implemented"
ftp -inuv myhost
Returns 504 then
quote USER myuser
Returns 534
I also tried sftp but i get "couldn't read packet: connection reset by peer".
That damn peer is making my life a nightmare since IRC ;)
sftp myuser#myhost:mydirectory/ -P21
Connexion reset by peer and it says it can't connect to port 22, which is weird since i specified port 21...
Thanks for your help
There is a diference between ftps and sftp : sftp is ftp over ssh, so in your case you cannot use sftp. ftps is ftp that use ssl/tls
You need an ftp client that manages TLS, for instance http://lftp.yar.ru/ (found on the net)

Resources