From 062d36c77ef77f58366e4f3c77ef4cb34f097c63 Mon Sep 17 00:00:00 2001
From: Fredrik Gustafsson
Date: Fri, 14 Sep 2012 14:20:56 +0200
Subject: SSH quiet mode
---
lib/ssh/src/ssh.erl | 5 +++++
1 file changed, 5 insertions(+)
(limited to 'lib')
diff --git a/lib/ssh/src/ssh.erl b/lib/ssh/src/ssh.erl
index 66d1d024ed..d09f6cf34b 100644
--- a/lib/ssh/src/ssh.erl
+++ b/lib/ssh/src/ssh.erl
@@ -344,6 +344,8 @@ handle_option([{auth_methods, _} = Opt | Rest], SocketOptions, SshOptions) ->
handle_option(Rest, SocketOptions, [handle_ssh_option(Opt) | SshOptions]);
handle_option([{pref_public_key_algs, _} = Opt | Rest], SocketOptions, SshOptions) ->
handle_option(Rest, SocketOptions, [handle_ssh_option(Opt) | SshOptions]);
+handle_option([{quiet_mode, _} = Opt|Rest], SocketOptions, SshOptions) ->
+ handle_option(Rest, SocketOptions, [handle_ssh_option(Opt) | SshOptions]);
handle_option([Opt | Rest], SocketOptions, SshOptions) ->
handle_option(Rest, [handle_inet_option(Opt) | SocketOptions], SshOptions).
@@ -416,6 +418,9 @@ handle_ssh_option({shell, {Module, Function, _}} = Opt) when is_atom(Module),
Opt;
handle_ssh_option({shell, Value} = Opt) when is_function(Value) ->
Opt;
+handle_ssh_option({quiet_mode, Value} = Opt) when Value == true;
+ Value == false ->
+ Opt;
handle_ssh_option(Opt) ->
throw({error, {eoptions, Opt}}).
--
cgit v1.2.3
From 0f2b8f9905de6290bc570c4c101490b144060504 Mon Sep 17 00:00:00 2001
From: Fredrik Gustafsson
Date: Thu, 8 Nov 2012 15:25:45 +0100
Subject: Doc for quiet_mode
---
lib/ssh/doc/src/ssh.xml | 4 ++++
1 file changed, 4 insertions(+)
(limited to 'lib')
diff --git a/lib/ssh/doc/src/ssh.xml b/lib/ssh/doc/src/ssh.xml
index 4ab25a8f9b..57f09c0cf0 100644
--- a/lib/ssh/doc/src/ssh.xml
+++ b/lib/ssh/doc/src/ssh.xml
@@ -183,6 +183,10 @@
. This is considered
somewhat experimental and will be better documented later on.
+
+ -
+
If true, the client will not print out anything on authorization.
+
-
Allow an existing file-descriptor to be used
--
cgit v1.2.3