wumpz commented on issue #3878: URL: https://github.com/apache/netbeans/issues/3878#issuecomment-3247776527
> My understanding is, that the issue is about this dialog and the list of username/host pairs in the dropdown list: > >  > > that dialog can be invoked from the terminal window tab: > >  > > That list is not associated with the ssh `known_hosts` file. The code that manages that list can be found here: > > [netbeans/ide/dlight.nativeexecution/src/org/netbeans/modules/nativeexecution/api/util/ConnectionManager.java](https://github.com/apache/netbeans/blob/35028307bd8398a357fdc19cc76d79d07c0307d9/ide/dlight.nativeexecution/src/org/netbeans/modules/nativeexecution/api/util/ConnectionManager.java#L187-L224) > > Lines 187 to 224 in [3502830](/apache/netbeans/commit/35028307bd8398a357fdc19cc76d79d07c0307d9) > > public List<ExecutionEnvironment> getRecentConnections() { > synchronized (recentConnections) { > return Collections.unmodifiableList(new ArrayList<>(recentConnections)); > } > } > > /*package-local for test purposes*/ void updateRecentConnectionsList(ExecutionEnvironment execEnv) { > synchronized (recentConnections) { > recentConnections.remove(execEnv); > recentConnections.add(0, execEnv); > storeRecentConnectionsList(); > } > } > > /*package-local for test purposes*/ void storeRecentConnectionsList() { > Preferences prefs = NbPreferences.forModule(ConnectionManager.class); > synchronized (recentConnections) { > for (int i = 0; i < recentConnections.size(); i++) { > prefs.put(getConnectoinsHistoryKey(i), ExecutionEnvironmentFactory.toUniqueID(recentConnections.get(i))); > } > } > } > > /*package-local for test purposes*/ void restoreRecentConnectionsList() { > Preferences prefs = NbPreferences.forModule(ConnectionManager.class); > synchronized (recentConnections) { > recentConnections.clear(); > int idx = 0; > while (true) { > String id = prefs.get(getConnectoinsHistoryKey(idx), null); > if (id == null) { > break; > } > recentConnections.add(ExecutionEnvironmentFactory.fromUniqueID(id)); > idx++; > } > } > } > Indeed there is no size limit. > > As a work around the file `$NETBEANS_CONFIGDIR/config/Preferences/org/netbeans/dlight/nativeexecution.properties` can be manually edited. The entries with the prefix `org.netbeans.modules.nativeexecution.api.util.ConnectionManager_connection.history` are the history entries. The entries with the prefix `org.netbeans.modules.nativeexecution.api.util.Authentication_` prefix hold the authentication information for the entry. Thats what I ment. The ssh known hosts I can handle. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org For additional commands, e-mail: notifications-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists