@@ -31,20 +31,20 @@ A SSH session goes through the following steps:
3131 - Invoke your own subsystem. This is outside the scope of this document,
3232 but can be done.
3333
34- - When everything is finished, just close the channels, and then the connection.
34+ - When everything is finished, just close the channels, and then the connection.
3535
3636The sftp and scp subsystems use channels, but libssh hides them to
3737the programmer. If you want to use those subsystems, instead of a channel,
3838you'll usually open a "sftp session" or a "scp session".
39-
39+
4040
4141@subsection setup Creating the session and setting options
4242
4343The most important object in a SSH connection is the SSH session. In order
4444to allocate a new SSH session, you use ssh_new(). Don't forget to
45- always verify that the allocation successed .
45+ always verify that the allocation succeeded .
4646@code
47- #include <libssh/libssh.h>
47+ #include <libssh/libssh.h>
4848#include <stdlib.h>
4949
5050int main()
@@ -69,12 +69,12 @@ The ssh_options_set() function sets the options of the session. The most importa
6969
7070The complete list of options can be found in the documentation of ssh_options_set().
7171The only mandatory option is SSH_OPTIONS_HOST. If you don't use SSH_OPTIONS_USER,
72- the local username of your account will be used.
72+ the local username of your account will be used.
7373
7474Here is a small example of how to use it:
7575
7676@code
77- #include <libssh/libssh.h>
77+ #include <libssh/libssh.h>
7878#include <stdlib.h>
7979
8080int main()
@@ -122,7 +122,7 @@ Here's an example:
122122@code
123123#include <libssh/libssh.h>
124124#include <stdlib.h>
125- #include <stdio.h>
125+ #include <stdio.h>
126126
127127int main()
128128{
@@ -285,9 +285,9 @@ int verify_knownhost(ssh_session session)
285285
286286The authentication process is the way a service provider can identify a
287287user and verify his/her identity. The authorization process is about enabling
288- the authenticated user the access to ressources . In SSH, the two concepts
288+ the authenticated user the access to resources . In SSH, the two concepts
289289are linked. After authentication, the server can grant the user access to
290- several ressources such as port forwarding, shell, sftp subsystem, and so on.
290+ several resources such as port forwarding, shell, sftp subsystem, and so on.
291291
292292libssh supports several methods of authentication:
293293 - "none" method. This method allows to get the available authentications
@@ -313,7 +313,7 @@ The example below shows an authentication with password:
313313@code
314314#include <libssh/libssh.h>
315315#include <stdlib.h>
316- #include <stdio.h>
316+ #include <stdio.h>
317317
318318int main()
319319{
@@ -338,7 +338,7 @@ int main()
338338 }
339339
340340 // Verify the server's identity
341- // For the source code of verify_knowhost (), check previous example
341+ // For the source code of verify_knownhost (), check previous example
342342 if (verify_knownhost(my_ssh_session) < 0)
343343 {
344344 ssh_disconnect(my_ssh_session);
@@ -415,7 +415,7 @@ int show_remote_processes(ssh_session session)
415415 }
416416 nbytes = ssh_channel_read(channel, buffer, sizeof(buffer), 0);
417417 }
418-
418+
419419 if (nbytes < 0)
420420 {
421421 ssh_channel_close(channel);
@@ -456,7 +456,7 @@ might be recoverable. SSH_FATAL means the connection has an important
456456problem and isn't probably recoverable.
457457
458458Most of time, the error returned are SSH_FATAL, but some functions
459- (generaly the ssh_request_xxx ones) may fail because of server denying request.
459+ (generally the ssh_request_xxx ones) may fail because of server denying request.
460460In these cases, SSH_REQUEST_DENIED is returned.
461461
462462For thread safety, errors are bound to ssh_session objects.
0 commit comments