-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SFTP: Device does not mount #1203
Comments
Here is my log file. Looks pretty similar. |
If the connection is just outright failing, it's probably a network configuration error. Anything else there should be a real error, indicating why the connection failed. GSConnect should only try to wipe old host keys if the connection fails with a host key error (ie. old host key), so to then find that the file doesn't exist at all seems like this is probably a configuration problem with your distribution. I'm not familiar with Garuda Linux at all, so I'm not sure I can help much more than that, sorry. |
Same issue: Gio.IOErrorEnum: Connection failed. |
My distribution has been updated to gnome 41.1, I have removed gsconnect on PC and KDE_connect on phone. Installed it again and paired it. But the mounting did not work. I installed Garuda KDE and Manjaro KDE on the same computer - this function works fine there. |
is mounting working for you? |
Earlier it worked on arch linux. When I installed another arch linux image on a different partition, it stopped working. Unfortunately I am unable to access the older arch linux installation, so can't comment whether it still works or not. |
I tried to connect to SFTP via command line
I found a solution after some searching:
After that the mounting works again. Update 1:
Update 2: |
Thank you @Noobsai |
Yeah this works |
Thank you very much for your research! Hooray, the mounting is working again! |
Didn't work for me. I created the config file and added the lines but still can't mount. |
No need to create a config file, I just added this: |
By looking at the original solution, I thought I was supposed to edit or create a config file in the home directory. But I did what you suggested and now it works. Thanks a lot. |
I'm not super knowledgeable about this stuff, but I've tried both versions of the solution in this thread, neither have worked for me. i am having the exact same issue. I even figured maybe the host part was supposed to be my IP, so i tried changing it to that, I've tried all four versions (the two above with the original text and with my ip) in the bottom and the towards the top of the config file. basically, I've tried every version of the solution given i could think of based on my little knowledge gained from playing around with linux this past month. But i haven't been able to fix it, i'm sure i'm just missing something that is probably really obvious to more knowledgeable people. so some help would be much appreciated. i'm using gnome 41.1 on Manjaro linux 86x_64, openssh8.8p1-1, and gsconnect 48-1 |
The host is the remote host, in this case I would assume your Android phone. Unless you're worried about someone sneaking a supercomputer onto your LAN I would just use a glob pattern like Like a lot of software, ssh will check in order the user configuration ( |
okay, this makes some more sense. So, i had actually tried just searching for the user configuration, but i could find no such file, although i did find the system configuration, and thus had been just adding it to that. Do you possibly have a link to how to find my subnet in the case that the glob pattern doesn't work? So, probably a stupid question then, but i'm guessing based off past experience that the .ssh folder is supposed to be within the home directory? and if so, if it's not present, should i create the folder then put the config inside? And if it's not supposed to be there, where would i find it? Again, really new to this stuff, I've actually had a lot of fun figuring out Linux, but there are still a lot of things i do not know. |
The config file didn't exist in my home directory. But adding these lines to /etc/ssh/ssh_config did solve the problem:
|
alright, now a new stupid question... honestly i figured out why i wasn't seeing the other file, it was because i was searching from within something else. so now i did find the etc/ssh/ssh_config vs whatever i was apparently changing before with the same name... now then, how do i use root to add the bit to it? as i have tried to just access root then cd into it, but it keeps tell me the directory doesn't exist at this point, i'd love it if someone told me step by step... I've done similar stuff before, but those files were a bit easier to find and had a step-by-step guide on how to do it. So treat me like i'm five, just as long as it makes some sense to someone who knows next to nothing EDIT: to explain the multiple files part, it turns out i was searching from home - which was giving me 2 files within the flatpack folder, which has the same exact text as the one within the /etc/ssh/ folder. but those two did nothing when changed, and I've not much of an idea of how to edit the /etc/ssh/ssh_config one, which seems to be the one i need to edit |
scratch that, a quick google search told me how to edit files as root, thankyou guys though! wish i'd known about gedit before... i wouldn't have had to manually count 123 lines of code that one time for ani-cli |
You can right click and Edit as Root/Administrator. Enter your password, open the file, add the lines and save. Not Save As though just Save. |
i know this is a bit innapropriate to waste space on, but you wouldn't be able to imagine the yell of happiness and the fist pump i just did into the air at finally getting this working.... i've tried other things for accessing my files on android, of which didn't work, so working on this for days... earlier found out that since my pc was plugged into the modem and not the router, they were on different networks... felt like an idiot... now to find out i was editing the wrong file for the past, like 6 or so hours.... god i am so happy to have this working |
For your future reference the tilde ( |
It doesn't work for me, I have the following error |
the ip of my cell phone was 192.168.0.15, for that reason it did not work for me, to know the ip of your cell phone it is necessary to go to the settings and look for the IP address option |
Does anyone know where the SFTP password is stored, generally? Thank you in advance, |
I am not a coder. I am using Ubuntu 22.04 and have installed the GSConnect Firefox extension on my laptop and the KDE Android app on my LG phone. I like GSConnect despite its shortcomings, one of which is the failure to Mount. |
One reason kdeconnect does not works is if sshfs is not installed . Does GSconnect not require sshfs ? |
I have sshfs installed but still it does not work. |
There is a workaround for this untill the bug is fixed. When gsconnect mounts the sftp it adds a new folder in the I wrote the below bash script to automatically find the #!/bin/bash
# A script to open GSconnect sftp folder with correct path
# Define the path to the GVFS folder
gvfs_path="/run/user/1000/gvfs"
# Find the folder that matches the pattern "sftp:host=*,port=*"
folder=$(find "$gvfs_path" -type d -name "sftp:host=*,port=*" | head -n 1)
if [ -z "$folder" ]; then
echo "No matching folder found."
exit 1
fi
# Extract host and port from the folder name
regex="sftp:host=([^,]*),port=([0-9]*)"
if [[ $folder =~ $regex ]]; then
host=${BASH_REMATCH[1]}
port=${BASH_REMATCH[2]}
else
echo "Failed to extract host and port from folder name."
exit 1
fi
# Construct the sftp URL
sftp_url="sftp://$host:$port/storage/emulated/0"
echo "Opening $sftp_url in Nautilus..."
# Open the sftp URL in Nautilus
nautilus "$sftp_url" &
This script works with Nautilus but can be easily modified to work with other file managers. |
Than there is a problem and your device is not mounting. Try adding these line in your
Like this: |
I already had that added. |
Check if you are using kde-connect android version 1.31.1 downgrade to 1.30.1 There is new bug in version 1.31.1 which causes mounting error. |
@akvedi, could you send a link to that error pls? |
I don't know how to send the error.
Sent from Proton Mail Android
…-------- Original Message --------
On 12/07/24 11:52 pm, Malix wrote:
Could you send a link to that error pls?
—
Reply to this email directly, [view it on GitHub](#1203 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AWV3IGWGYYIC2HEFKPBXIPDZMANIHAVCNFSM5HV7OPWKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMRSGYYTIMRWGU4Q).
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hi, Im running Ubuntu 24.04 with GSConnect extension and KDE Connect 1.30.0 on my phone. When i try to mount my phone in Nautilus, i have this message :
|
Look here GSconnect sftp |
That is not true at all. At least on Debian. |
hey @Noobsai! I tried this and when i try to ssh it asks me for a password. But I dont know what is the password or I havent set any. which password is it asking? can you help me with this, please? |
I noticed that a new version of the KDE Connect app (v1.32.1) was released a few hours ago. It seems to include the latest versions of sshd (2.13.2) and Apache MINA (2.2.3), so it looks like this issue in GSConnect might now be fixable. |
Its working again now.
Sent from Proton Mail Android
…-------- Original Message --------
On 19/08/24 5:29 pm, johnstv wrote:
I noticed that a new version of the KDE Connect app (v1.32.1) was released a few hours ago. It seems to include the latest versions of sshd (2.13.2) and Apache MINA (2.2.3), so it looks like this issue in GSConnect might now be fixable.
—
Reply to this email directly, [view it on GitHub](#1203 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AWV3IGRGSHV4JLYVFBEX3W3ZSHM2VAVCNFSM5HV7OPWKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMRZGY2DAMRQGAYQ).
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I just tried it now, but in my case it still shows the same permission error as before: I can only view the files and folders on the phone after adding "/sdcard" or "/storage/emulated/0" after the phone's IP address in Nautilus's path bar, which is the same behavior as before: For reference, my phone doesn't have an SD card, the "/sdcard" path suffix is just one of the ways to view its internal filesystem on my computer. For reference, I'm running the latest stable version 57 of the GSConnect extension on Ubuntu 24.04 with all of the latest updates installed as of today. I've installed the KDE Connect version 1.32.0 (the latest version available on the Play Store and F-Droid, it was released only over a week ago) on my phone running Android 14. @Beast-Viper Did the phone's filesystem immediately appear when you clicked on it in the left sidebar in Nautilus? |
No, what you had said (the path) is how I got it working. Before it did not even mount or show in Nautilus.
And the reason why you directly cannot the phone's storage is because the android app mounts the fs root of the phone i.e. / which is inaccessible without root access on the phone. Moreover KDE Connect for android does not use root in any form to be able to view the / directory. So we get this warning.
Another workaround is to add the internal storage path as bookmarks in the sidebar for quick access.
Sent from Proton Mail Android
…-------- Original Message --------
On 20/08/24 2:36 am, johnstv wrote:
In my case it still shows the same permission error as before:
[Screenshot.from.2024-08-19.21-44-31.png (view on web)](https://github.com/user-attachments/assets/c62305fd-d83e-4166-ba72-3c866a4888d4)
I can only view the files and folders on the phone after adding "/sdcard" or "/storage/emulated/0" after the phone's IP address in Nautilus's path bar, which is the same behavior as before:
[Screenshot.from.2024-08-19.21-44-48.png (view on web)](https://github.com/user-attachments/assets/e25dd725-2afe-4988-9c9d-a43d2a73df00)
For reference, my phone doesn't have an SD card, the "/sdcard" path suffix is just one of the ways to view its internal filesystem on my computer.
For reference, I'm running the latest stable version 57 of the GSConnect extension on Ubuntu 24.04 with all of the latest updates installed as of today. I've installed the KDE Connect version 1.32.0 (the latest version available on the Play Store and F-Droid, it was released only over a week ago) on my phone running Android 14.
***@***.***(https://github.com/Beast-Viper) Did the phone's filesystem immediately appear when you clicked on it in the left sidebar in Nautilus?
If so, what's your current computer and phone configuration, if you don't mind saying?
—
Reply to this email directly, [view it on GitHub](#1203 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AWV3IGX2BLXBK4URCKZPAY3ZSJM4JAVCNFSM5HV7OPWKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMRZG42DKNJZGQZQ).
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I doubt a bookmark would work because the ip address in the mounted sftp is not static. It can sometimes change. There's the old way which KDEConnect used to work, where there was an in-app menu to select the filesystem(s) to expose. Now just manually append the directory either If there's anything to fix, I think it's only to migrate away from |
So, the Android-side implementation of the Filesystem Expose plugin AGAIN with the latest KDE Connect app release. (Probably to meet Google requirements, not simply because they felt like messing with us, but it's still a pain.) They now no longer support mounting of the root Which means that not only will mounting |
Is the FDroid version the same?
Sent from Proton Mail Android
…-------- Original Message --------
On 17/09/24 3:43 am, Frank Dana wrote:
So, the Android-side implementation of the Filesystem Expose plugin AGAIN with the latest KDE Connect app release. (Probably to meet Google requirements, not simply because they felt like messing with us, but it's still a pain.)
They now no longer support mounting of the root /sdcard/ / '/storage/emulated/0/ directory AT ALL. /sdcard/Downloads/ is also off-limits. You have to choose one or more paths other than those, in order to set up an exposed filesystem.
Which means that not only will mounting / still not work, but now mounting /sdcard or /storage/emulated/0 will also no longer work, because they can't give external connections access to those paths.
—
Reply to this email directly, [view it on GitHub](#1203 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AWV3IGTC5THFAY7QT4ZNGULZW5JZBAVCNFSM5HV7OPWKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMZVGQYTEMJSGY3Q).
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
The F-Droid version works for me. |
The F-Droid version does not work for me. Workaround applied in .ssh/config, running GSConnect 57 and KDEConnect 1.32.5 on an Android 11 device. I mount the device, it shows up in Nautilus as an IPv4 address and I click on that: Here's the support log generated during above steps:
I don't see any openssh-related log entries, how can I access those? |
Please try clicking on the address bar (after you click on the mounted dir) and add /sdcard to the path.
Sent from Proton Mail Android
…-------- Original Message --------
On 08/10/24 1:11 am, muusik wrote:
The F-Droid version does not work for me. Workaround applied in .ssh/config, running GSConnect 57 and KDEConnect 1.32.5 on an Android 11 device. I mount the device, it shows up in Nautilus as an IPv4 address and I click on that:
"This location could not be displayed"
GSConnect: 57 (user)
GJS: 18002
Session: wayland
OS: Debian GNU/Linux trixie/sid
Hint: You are currently not seeing messages from other users and the system.
Users in groups 'adm', 'systemd-journal' can see all messages.
Pass -q to turn off this notice.
Oct 07 22:36:03 systemd[1922]: app-gnome-org.gnome.Shell.Extensions.GSConnect.Preferences-11665.scope: Couldn't move process 11665 to requested cgroup ***@***.***/app.slice/app-gnome-org.gnome.Shell.Extensions.GSConnect.Preferences-11665.scope': No such process
Oct 07 22:36:03 systemd[1922]: app-gnome-org.gnome.Shell.Extensions.GSConnect.Preferences-11665.scope: Failed to add PIDs to scope's control group: No such process
Oct 07 22:36:03 systemd[1922]: app-gnome-org.gnome.Shell.Extensions.GSConnect.Preferences-11665.scope: Failed with result 'resources'.
Oct 07 22:36:03 systemd[1922]: Failed to start app-gnome-org.gnome.Shell.Extensions.GSConnect.Preferences-11665.scope - Application launched by gnome-shell.
Oct 07 22:36:04 gjs[11672]: JS ERROR: Gio.IOErrorEnum: Can’t handle the supplied version of the icon encoding
***@***.******@***.***/preferences/device.js:837:33
***@***.******@***.***/preferences/device.js:806:14
***@***.******@***.***/preferences/device.js:330:14
***@***.******@***.***/preferences/device.js:299:4
***@***.******@***.***/preferences/service.js:583:31
***@***.******@***.***/utils/remote.js:318:18
***@***.******@***.***/utils/remote.js:374:24
***@***.******@***.***/utils/remote.js:399:28
***@***.******@***.***/utils/remote.js:417:28
***@***.******@***.***/preferences/service.js:263:32
***@***.******@***.***/preferences/service.js:229:14
***@***.******@***.***/preferences/service.js:162:4
***@***.******@***.***/gsconnect-preferences:45:28
***@***.***(https://github.com/resource):///org/gnome/gjs/modules/core/overrides/GLib.js:266:34
Oct 07 22:36:22 gnome-shell[2101]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
I don't see any openssh-related log entries, how can I access those?
—
Reply to this email directly, [view it on GitHub](#1203 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AWV3IGT74C7C3LZR2N4QO6DZ2LPV7AVCNFSM5HV7OPWKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMZZG43TIMJVGEYQ).
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Oh, that actually worked, thanks. Looks to me now like I'm hitting bug #1610 instead. |
You can bookmark the address for easy access. Also remember to disable randomised ip for preventing the sftp address to change.
Sent from Proton Mail Android
…-------- Original Message --------
On 09/10/24 10:26 pm, muusik wrote:
Oh, that actually worked, thanks. Looks to me now like I'm hitting bug [#1610](#1610) instead.
—
Reply to this email directly, [view it on GitHub](#1203 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AWV3IGVASLF3WNI25337UA3Z2VN5XAVCNFSM5HV7OPWKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TENBQGI4DIMBUHEYQ).
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Describe the bug
Android devices can not be mounted or browsed via SFTP.
Steps To Reproduce:
Try to mount an Android device using the menu item.
Expected behavior
Device should mount and open in Nautilus.
Support Log
ноя 09 21:21:08 gjs[5495]: JS ERROR: SM-A415F: Gio.IOErrorEnum: Сбой подключения
_handleMount/</<@/home/dez/.local/share/gnome-shell/extensions/[email protected]/service/plugins/sftp.js:253:38
@/home/dez/.local/share/gnome-shell/extensions/[email protected]/service/daemon.js:727:17
ноя 09 21:21:08 org.gnome.Shell.Extensions.GSConnect[5495]: [/service/device.js:sendPacket:446]: SM-A415F: {
"id": 1636482068837,
"type": "kdeconnect.sftp.request",
"body": {
"startBrowsing": true
}
}
ноя 09 21:21:08 org.gnome.Shell.Extensions.GSConnect[5495]: [/service/device.js:_readLoop:338]: SM-A415F: {
"id": 1636482067836,
"type": "kdeconnect.sftp",
"body": {
"ip": "192.168.1.2",
"port": 1741,
"user": "kdeconnect",
"password": "hc1FPbfO0dQ2OwDiUVEb06C3R0jx",
"path": "/",
"multiPaths": [
"/primary"
],
"pathNames": [
"primary"
]
}
}
ноя 09 21:21:09 gjs[5495]: JS ERROR: SM-A415F: Gio.IOErrorEnum: Сбой подключения
_handleMount/</<@/home/dez/.local/share/gnome-shell/extensions/[email protected]/service/plugins/sftp.js:253:38
@/home/dez/.local/share/gnome-shell/extensions/[email protected]/service/daemon.js:727:17
System Details (please complete the following information):
Distro: Garuda Linux
GSConnect environment (if applicable):
Additional Notes:
Add any additional information about the problem or your system.
The text was updated successfully, but these errors were encountered: