Skip to content
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

Improvement External Storage - SFTP RSA keys generation #10830

Closed
scriptsagency opened this issue Aug 24, 2018 · 3 comments
Closed

Improvement External Storage - SFTP RSA keys generation #10830

scriptsagency opened this issue Aug 24, 2018 · 3 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap enhancement needs info stale Ticket or PR with no recent activity

Comments

@scriptsagency
Copy link

Steps to reproduce

  1. Enable External Storages
  2. Add a new SFTP external storage using RSA Public key where a new Public/Private key pair is being generated and the public key is added to the server to allow authentication
  3. Adding the same server as a new entry with a different root path using SFTP and RSA requires a new generation of the Public/Private key pair and adding the public key to the server in order to allow authentication

Expected behaviour

If the same server is used I would like to be able to reuse the already existing Public/Private key pair and not have to generate one for each storage instance .

Actual behaviour

Each new storage instance requires a pair of Public/Private key to be generated and then the public key to be added to the server in order to allow authentication.

Server configuration

Operating system:
Ubuntu 18.04 on Digital Ocean

Web server:
Apache

Database:
Mysql 5.7

PHP version:
PHP 7.2

Nextcloud version: (see Nextcloud admin page)
NC 13.0.1

Updated from an older Nextcloud/ownCloud or fresh install:
Fresh Install

Where did you install Nextcloud from:
github

Signing status:

Signing status
Login as admin user into your Nextcloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results here.

List of activated apps:

App list
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder

Nextcloud configuration:

Config report
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder

or 

Insert your config.php content here. 
Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)

Are you using external storage, if yes which one: local/smb/sftp/...
sftp

Are you using encryption: yes/no
no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
no

LDAP configuration (delete this part if not used)

LDAP config
With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your Nextcloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';


Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.

Client configuration

Browser:
Chrome

Operating system:
Windows 10

Logs

Web server error log

Web server error log
Insert your webserver log here

Nextcloud log (data/nextcloud.log)

Nextcloud log
Insert your Nextcloud log here

Browser log

Browser log
Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...
@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #4730 (Storage), #3789 (External storage), #8903 (SFTP with RSA generated key doesn't work), #9170 (redirect), and #8241 (image).

@skjnldsv skjnldsv added the 0. Needs triage Pending check for reproducibility or if it fits our roadmap label Aug 20, 2020
@szaimen
Copy link
Contributor

szaimen commented Jun 9, 2021

@icewind1991 is this feasible?

@ghost
Copy link

ghost commented Jul 9, 2021

This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.

@ghost ghost added the stale Ticket or PR with no recent activity label Jul 9, 2021
@ghost ghost closed this as completed Jul 23, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap enhancement needs info stale Ticket or PR with no recent activity
Projects
None yet
Development

No branches or pull requests

4 participants