Trying to log into PSFTP, closes everytime
-
Hey Olly,
I'm trying to log into psftp and I have pageant running. Everytime I type in "open USER", the program just closes out, i also tried the other method with the USER@domain.ltd, did the same thing. Just wondering what might be the problemPosted 2 years ago # -
Hey Joe. to be honest I rarely use it but that sounds buggy. maybe a reinstall?
Posted 2 years ago # -
Is there something else you recommend for command line ftp then? I'm trying to ftp an SQL file into my home directory. I tried to use filezilla to upload it, but it doesn't let me, it blocks it because of permissions. I'm logged in as the user I created, not root. Do I need to change the permissions on my home directory to upload stuff with the user?
Posted 2 years ago # -
well, that's an odd error. rather a pain not to be able to use SCP, which is faster than ftp. But with either method, you'll have the permissions problem so let's sort that ...
(I need to write up a tut on this - changing directory ownership. it affects everyone!)
to 'ch'ange 'own'ership of the dir you wanna upload to, in your regular PuTTY (or Linux) terminal:-
sudo chown yourUsername:www-data path/to/folder
when done, revert the permission (back to the nginx user, still within the nginx group):-
sudo chown www-data:www-data path/to/folder
or, if you ever need permissions for a folder hierarchy? (you will) ie, recursively:-
sudo chown -R yourUsername:www-data path/to/folder
check out the manual too – "man chown", just type that in your terminal.
you'll do this a lot. to make it painless, you can add an alias in your bashrc file and then change permissions on a commonly changeable folder – such as plugins or uploads – with one a memorable 1 word shortcut, and another for reverting the permission. check out:-
» tutorial » Alias Shortcuts & User-Friendly Functions
or, probably better, over at guv:-
Terminal Alias Shortcuts with bashrc [KARMIC KOALA BIBLE #7] – GUVNR
~~~
.. maybe it's this permissions issue that throws the error with PSFTP .. that would make sense. Please advise if that's the case.
Posted 2 years ago # -
Ok, changing the permissions worked, now I can upload files! Thanks. Is it a security risk to leave them changed? Hence the having to revert the permission afterward? However it didn't remedy the weird PSFTP problem. I'll try to reinstall it. When you say SCP, do you mean something like WinSCP for file transfer? Thanks again, i've learned a ton from your tutorials!
Posted 2 years ago # -
cool Joe .. good to hear.
yeah, revert those permissions. this is something I'm gonna cover in a bit more detail over a series of "Permissions" posts, so watch out for that.
WinSCP is just about the best FTP client out there .. it uses the same encryption protocol as SCP but SCP-pure is command line stuff, whereas WinSCP has a GUI like FileZilla.
Er, I have to admit I'm using FileZilla at the moment tho :P .. shouldn't be really but it, too, is superb, particularly with its option to be run as an SFTP client .. again using that secure scrambling protocol (SSH).
But SCP is the best way to do stuff, and way faster once you master the syntax - damn, when you see how fast files transfer with it you'll never use a regular FTP client again for batch transfers
.. run a search because I've written a couple of tuts on it, one for Windows local and one for Linux local, both to remote Linux.
Posted 2 years ago #
Reply
You must log in to post.
Want HTML?
a blockquote code em strong ul ol liPlace code between backticks `codeHere`
You've got it.
