Hi, I'm using openssh 4.4 I'm trying to develop a new SSH appliance, but I need some parameters from client. In client I setup new record in the structure options that I think are passed to server. Where is the structure of the server where stored client options? Thanks -- Vincenzo Sciarra
On Sun, Nov 12, 2006 at 09:35:38AM +0100, Vincenzo Sciarra wrote:> I'm using openssh 4.4 > > I'm trying to develop a new SSH appliance, but I need some parameters > from client. > > In client I setup new record in the structure options that I think are > passed to server. > Where is the structure of the server where stored client options?There's no C-level structure that's passed directly from client to server. You will need to fit the data that you want to pass into the protocol somewhere, and exactly where will depend on what you're trying to pass. Do you need the parameters pre-authentication? In that case you might want to create a custom auth method. Is the parameter data keyword-value pairs? You might be able to pass the parameters in environment variable requests. Otherwise, you might need a custom channel request type. It depends on exactly what you're trying to do. -- Darren Tucker (dtucker at zip.com.au) GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.
Very cool. Thanks!!!!!! If I want to modify the code, how I can do equivalent of SendEnv and AcceptEnv? 2006/11/12, Darren Tucker <dtucker at zip.com.au>:> On Sun, Nov 12, 2006 at 10:28:08AM +0100, Vincenzo Sciarra wrote: > > Thanks for reply. > > You might also want to cc: the list as you might get more/better feedback. > > > I'm trying to pass a remote path @ the login-time. > > In that case, you don't actually need it until after authentication, > so I suggest you use an environment request. You don't need to modify > the code, just use the existing SendEnv and AcceptEnv options. > > > Something like "ssh -l user host -p port -K remote_path". > > > > The sample -K option should pass a remote path to server and the > > server will download the file @ the location. > > So that would be something like: > > DESTPATH=remote_path ssh -l user host -p port -oSendEnv=DESTDIR > > If necessary you could add a command-line shortcut for to ssh for that. > > -- > Darren Tucker (dtucker at zip.com.au) > GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 > Good judgement comes with experience. Unfortunately, the experience > usually comes from bad judgement. >-- Vincenzo Sciarra