SFTP not working
I've tried to access my filesystem through sftp and i get a connection error from filezilla, it's weird because my ssh access works perfectly fine. Any ideas on how I could fix it?
24 Replies
SFTP should work fine we do nothing to block it since its just ssh
no specific ports or anything? because for some reason i get a connection refused by server from filezilla
22 same as ssh since STFP is just ssh
only reason it would be refused would be because of wrong user, password or key
would i have to clear the key from the machine i'm trying to connect with, or both ends?
if youre on a linux machine you can just try using remmina to try connect to SFTP to rule out filezilla
dont have an error to work with other than "refused" so thats all i can help with
if ssh works then SFTP is supposed to work since its the same port and protocol
tried remmina, it connected fine through ssh, but when i click the sftp option, it tries to connect for a second and closes
maybe there's a system service i need to enable?
sshd nothing else needed because ssh and stfp are the same
guess it wasn't meant to be for me then, thank you for trying at least
try
journalctl -t sshd -f
on the server then connect
might give you some infonothing really useful, just success and close messages from my ssh attempts
and for sftp?
silence, no logs
try
sftp user@host
and see what error that gives
its cli sftp:thonk:
lastly have you added a different shell to your
.bashrc
or .bashrc.d
since i know a lot of people like zsh or fish and change to it in weird incompatible ways 🤣i altered my .bashrc to do
fastfetch
, don't think i changed the shelljust to rule it out
Solution
comment it out?
if not you got something to websearch now at least
...i think that was it
i tried the sftp command again and it worked
there you go
that's confusing as hell, but alright
you can try make it only fastfetch if it has an interactive shell
instead of blindly fastfetch even when it is not interactive
ohhh that's probably why
that actually explains a few weird bugs i was encountering, thanks!