remote-ftp icon indicating copy to clipboard operation
remote-ftp copied to clipboard

Could not read .ftpconfig

Open rainiur opened this issue 6 years ago • 9 comments

Just updated to version 2.2.1 getting the following error. It was working fine 5 minutes ago prior to the upgrade.

Remote FTP: Could not read .ftpconfig file. Error: ENOENT: no such file or directory, open 'C:\Users\ldavi.ssh\config

Running on Windows 10, Atom 1.32.2 x64

rainiur avatar Nov 17 '18 13:11 rainiur

I had the same problem. I went to the path that the error says and there was a file named 'known_hosts', I renamed it to 'config' and it worked fine.

fiere210 avatar Nov 17 '18 16:11 fiere210

Rather than change the file name (which may be used elsewhere), change the remote-ftp settings (SSH config path) filename from 'config' to 'known_hosts'.

fifty120 avatar Nov 18 '18 17:11 fifty120

@fifty120 work perfect. thanks

wangta69 avatar Nov 23 '18 02:11 wangta69

Hi. I'm having the same problem but my programming skills are not enough to do what was suggested above ("Rather than change the file name (which may be used elsewhere), change the remote-ftp settings (SSH config path) filename from 'config' to 'known_hosts'.)" Can anyone help? FTP was working minutes ago, but now it's not (and the configuration in it is correct - ftp, user, password, etc). Thanks!

m3orange avatar Dec 15 '18 20:12 m3orange

@fifty120 - works, thanks @m3orange - So on a Mac in Atom on the top menu, go to Atom -> Preferences -> Packages, then under remote-ftp click "Settings", scroll down to "SSH Config Path" and then in the field change 'config' to 'known_hosts'. Hope that helps!

aetcheve avatar Jan 11 '19 20:01 aetcheve

Error: ENOENT: no such file or directory, open 'C:\Users\Adam\.ssh\config'

I am getting this error, though the directory .ssh does not exist in 'C:\Users\Adam\'

edit: The main error title bar says 'Remote FTP: Could not read .ftpconfig file.'

adamcole123 avatar Feb 21 '19 15:02 adamcole123

I just had this issue but for me it was coupled with not being able to open the project from an active project (as in file->"reopen project" from a different opened project so it opens in a different window). This just gave me a gray screen. What has fixed it for me was to rename the project folder. I think the package corrupts something where it saves what tabs you have open and all that. Not sure though, but I've had this gray screen issue thrice now and this solved it every time.

Doskii avatar Mar 23 '19 19:03 Doskii

If you run on macOS and if you never use SSH connection before then there is no /.ssh/config or /.ssh/known_hosts file on your Mac. Solution : Open terminal window and connect to your ssh server regularly then come back and change your setting on atom, from /.ssh/config to /.ssh/known_host and connect. Thats it.

appbears avatar Feb 15 '20 03:02 appbears

appebears says: " change your setting on atom, from /.ssh/config to /.ssh/known_host and connect. "
How to do that?

michon avatar Dec 02 '21 10:12 michon