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?
Solution:
comment it out?
Jump to solution
24 Replies
HikariKnight
HikariKnight•5mo ago
SFTP should work fine we do nothing to block it since its just ssh
skullbite
skullbiteOP•5mo ago
no specific ports or anything? because for some reason i get a connection refused by server from filezilla
HikariKnight
HikariKnight•5mo ago
22 same as ssh since STFP is just ssh only reason it would be refused would be because of wrong user, password or key
skullbite
skullbiteOP•5mo ago
would i have to clear the key from the machine i'm trying to connect with, or both ends?
HikariKnight
HikariKnight•5mo ago
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
skullbite
skullbiteOP•5mo ago
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?
HikariKnight
HikariKnight•5mo ago
sshd nothing else needed because ssh and stfp are the same
skullbite
skullbiteOP•5mo ago
guess it wasn't meant to be for me then, thank you for trying at least
HikariKnight
HikariKnight•5mo ago
try journalctl -t sshd -f on the server then connect might give you some info
skullbite
skullbiteOP•5mo ago
nothing really useful, just success and close messages from my ssh attempts
HikariKnight
HikariKnight•5mo ago
and for sftp?
skullbite
skullbiteOP•5mo ago
silence, no logs
HikariKnight
HikariKnight•5mo ago
try sftp user@host and see what error that gives its cli sftp
skullbite
skullbiteOP•5mo ago
:thonk:
No description
HikariKnight
HikariKnight•5mo ago
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 🤣
skullbite
skullbiteOP•5mo ago
i altered my .bashrc to do fastfetch, don't think i changed the shell
HikariKnight
HikariKnight•5mo ago
just to rule it out
Solution
HikariKnight
HikariKnight•5mo ago
comment it out?
HikariKnight
HikariKnight•5mo ago
if not you got something to websearch now at least
skullbite
skullbiteOP•5mo ago
...i think that was it i tried the sftp command again and it worked
HikariKnight
HikariKnight•5mo ago
there you go
skullbite
skullbiteOP•5mo ago
that's confusing as hell, but alright
HikariKnight
HikariKnight•5mo ago
you can try make it only fastfetch if it has an interactive shell instead of blindly fastfetch even when it is not interactive
skullbite
skullbiteOP•5mo ago
ohhh that's probably why that actually explains a few weird bugs i was encountering, thanks!
Want results from more Discord servers?
Add your server