You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Charles <qu...@yahoo.com> on 2017/01/05 16:25:14 UTC
SCP and SFTP not working
HiI’m trying to verify if I’ve foundan issue with the SFTP/SCP server within Karaf, and in the inherited project Servicemix. I use Camel to perform many integrations,storing properties files within the /etc folder. Ideally I’d like access to the /etc folderwithin Karaf to allow updates to the configuration files by my build tooling.
Sadly I’ve not managed to get theSFTP / SCP faciility to work. I’mrunning Servicemix 4.5.3 (Karaf 2.2) on Java 1.6_45, on Windows primarily. Any attempts to use SFTP via FTP clientresults in an error, or results in a folder presented to the client, with a name that’s actually a date, which can’t benavigated.
Thinking this may be a platformissue I’ve tried it on later vanilla Servicemix versions 6.0, 7.0 m2, and Karaf4. I’ve tried on those versions on Linux,and using Java 7 & 8. No combinationresults in filesystem access.
Can anyone confirm this facilityworks under other Karaf versions or environments? Or amI doing something really dumb?
Thanks
Re: SCP and SFTP not working
Posted by Achim Nierbeck <bc...@googlemail.com>.
oh ... cool :)
2017-01-05 18:03 GMT+01:00 Guillaume Nodet <gn...@apache.org>:
> No, sftp and scp are fully supported by SSHD.
> In 2.2.x, scp seems enabled, but not ftp:
> https://github.com/apache/karaf/blob/karaf-2.2.x/shell/
> ssh/src/main/resources/OSGI-INF/blueprint/shell-ssh.xml#L86-L92
>
> 3.x has both scp and ftp enabled:
> https://github.com/apache/karaf/blob/karaf-3.0.x/shell/
> ssh/src/main/resources/OSGI-INF/blueprint/shell-ssh.xml#L103-L120
>
> 2017-01-05 17:37 GMT+01:00 Achim Nierbeck <bc...@googlemail.com>:
>
>> Hi,
>>
>> as Karaf uses Apache Mina, for it's SSH server you'll most likely need to
>> take a look if it's even possible.
>> AFAIK it's only a simple SSH server, so no extra functionality like sftp
>> or scp are supported.
>> If you want to have a full-blown SSH server you need to use the operating
>> system supported ones.
>>
>> regards, Achim
>>
>>
>> 2017-01-05 17:25 GMT+01:00 Charles <qu...@yahoo.com>:
>>
>>> Hi
>>> I’m trying to verify if I’ve found an issue with the SFTP/SCP server
>>> within Karaf, and in the inherited project Servicemix. I use Camel to
>>> perform many integrations, storing properties files within the /etc folder.
>>> Ideally I’d like access to the /etc folder within Karaf to allow updates
>>> to the configuration files by my build tooling.
>>> Sadly I’ve not managed to get the SFTP / SCP faciility to work. I’m
>>> running Servicemix 4.5.3 (Karaf 2.2) on Java 1.6_45, on Windows primarily.
>>> Any attempts to use SFTP via FTP client results in an error, or results in
>>> a folder presented to the client, with a name that’s actually a date,
>>> which can’t be navigated.
>>> Thinking this may be a platform issue I’ve tried it on later vanilla
>>> Servicemix versions 6.0, 7.0 m2, and Karaf 4. I’ve tried on those versions
>>> on Linux, and using Java 7 & 8. No combination results in filesystem
>>> access.
>>> Can anyone confirm this facility works under other Karaf versions or
>>> environments? Or am I doing something really dumb?
>>> Thanks
>>>
>>
>>
>>
>> --
>>
>> Apache Member
>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>> & Project Lead
>> blog <http://notizblog.nierbeck.de/>
>> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>
>> Software Architect / Project Manager / Scrum Master
>>
>>
>
>
> --
> ------------------------
> Guillaume Nodet
> ------------------------
> Red Hat, Open Source Integration
>
> Email: gnodet@redhat.com
> Web: http://fusesource.com
> Blog: http://gnodet.blogspot.com/
>
>
--
Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
Software Architect / Project Manager / Scrum Master
Re: SCP and SFTP not working
Posted by Guillaume Nodet <gn...@apache.org>.
No, sftp and scp are fully supported by SSHD.
In 2.2.x, scp seems enabled, but not ftp:
https://github.com/apache/karaf/blob/karaf-2.2.x/shell/ssh/src/main/resources/OSGI-INF/blueprint/shell-ssh.xml#L86-L92
3.x has both scp and ftp enabled:
https://github.com/apache/karaf/blob/karaf-3.0.x/shell/ssh/src/main/resources/OSGI-INF/blueprint/shell-ssh.xml#L103-L120
2017-01-05 17:37 GMT+01:00 Achim Nierbeck <bc...@googlemail.com>:
> Hi,
>
> as Karaf uses Apache Mina, for it's SSH server you'll most likely need to
> take a look if it's even possible.
> AFAIK it's only a simple SSH server, so no extra functionality like sftp
> or scp are supported.
> If you want to have a full-blown SSH server you need to use the operating
> system supported ones.
>
> regards, Achim
>
>
> 2017-01-05 17:25 GMT+01:00 Charles <qu...@yahoo.com>:
>
>> Hi
>> I’m trying to verify if I’ve found an issue with the SFTP/SCP server
>> within Karaf, and in the inherited project Servicemix. I use Camel to
>> perform many integrations, storing properties files within the /etc folder.
>> Ideally I’d like access to the /etc folder within Karaf to allow updates
>> to the configuration files by my build tooling.
>> Sadly I’ve not managed to get the SFTP / SCP faciility to work. I’m
>> running Servicemix 4.5.3 (Karaf 2.2) on Java 1.6_45, on Windows primarily.
>> Any attempts to use SFTP via FTP client results in an error, or results in
>> a folder presented to the client, with a name that’s actually a date,
>> which can’t be navigated.
>> Thinking this may be a platform issue I’ve tried it on later vanilla
>> Servicemix versions 6.0, 7.0 m2, and Karaf 4. I’ve tried on those versions
>> on Linux, and using Java 7 & 8. No combination results in filesystem
>> access.
>> Can anyone confirm this facility works under other Karaf versions or
>> environments? Or am I doing something really dumb?
>> Thanks
>>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
> Project Lead
> blog <http://notizblog.nierbeck.de/>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>
> Software Architect / Project Manager / Scrum Master
>
>
--
------------------------
Guillaume Nodet
------------------------
Red Hat, Open Source Integration
Email: gnodet@redhat.com
Web: http://fusesource.com
Blog: http://gnodet.blogspot.com/
Re: SCP and SFTP not working
Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi,
as Karaf uses Apache Mina, for it's SSH server you'll most likely need to
take a look if it's even possible.
AFAIK it's only a simple SSH server, so no extra functionality like sftp or
scp are supported.
If you want to have a full-blown SSH server you need to use the operating
system supported ones.
regards, Achim
2017-01-05 17:25 GMT+01:00 Charles <qu...@yahoo.com>:
> Hi
> I’m trying to verify if I’ve found an issue with the SFTP/SCP server
> within Karaf, and in the inherited project Servicemix. I use Camel to
> perform many integrations, storing properties files within the /etc folder.
> Ideally I’d like access to the /etc folder within Karaf to allow updates
> to the configuration files by my build tooling.
> Sadly I’ve not managed to get the SFTP / SCP faciility to work. I’m
> running Servicemix 4.5.3 (Karaf 2.2) on Java 1.6_45, on Windows primarily.
> Any attempts to use SFTP via FTP client results in an error, or results in
> a folder presented to the client, with a name that’s actually a date,
> which can’t be navigated.
> Thinking this may be a platform issue I’ve tried it on later vanilla
> Servicemix versions 6.0, 7.0 m2, and Karaf 4. I’ve tried on those versions
> on Linux, and using Java 7 & 8. No combination results in filesystem
> access.
> Can anyone confirm this facility works under other Karaf versions or
> environments? Or am I doing something really dumb?
> Thanks
>
--
Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
Software Architect / Project Manager / Scrum Master