The openMinimal() method Roland added was to support proxy connections where there is a 2-hop process for accessing the target system. The connection to the intermediate machine is just a very basic ssh connection that is used to either set up port forwarding (if the intermediate host allows it) or run a command (usually another ssh command). Once a connection is established to the target system, this connection is opened “fully”, which would then (try to) start an sftp server channel, etc.
Here are the situations that I think need to be supported:
1-hop host: a) ssh + sftp, >2 channels b) ssh + sftp, 2 channels c) ssh, >1 channels d) ssh, 1 channel
2-hop intermediate host (same target host options as for 1-hop): e) forwarding f) no forwarding, normal shell g) no forwarding, restricted shell
I’m presuming your system is (g). I think the connection class will need to be changed to deal with this as it still assumes that commands like ‘printenv’ are allowed.
Greg
Greg,
I just tried with Mars 4.5.0 and in also shows the SFTP error. Apologies, I thought it had worked in Mars. Then I tried the Luna SR1 and it is also showing the same issue!
Maybe what is happening here is that the system I am connecting to previously had sftp available and it has since been disabled, so now these connections are failing in Luna - Neon, although they previously worked. (The system in question is NASA Discover.)
I looked back at my interactions with Roland. It resulted in these changes:
Maybe that will shed light on what changed under the hood.
It must have been that the issue he resolved had more to do with the limited shell--i.e., you cannot run any commands to pull in environment information, but the connection is still established.
Basically, for some of these login nodes they are stripped down and you cannot assume much of anything. However, it would be preferable if PTP made a "best effort" to establish a connection -- i.e., don't fail if sftp or env. commands are not available. I think Roland had an openMinimal() in there which is maybe doing just this.
Rocky
_______________________________________________ ptp-dev mailing list ptp-dev@xxxxxxxxxxxTo change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/ptp-dev
|