diff --git a/RTCP/IONProc/src/SSH.cc b/RTCP/IONProc/src/SSH.cc
index a73c165bbd91707aca071ad876d8590c8e14819c..799c656aae522d5771947b66d354773cbd294f43 100644
--- a/RTCP/IONProc/src/SSH.cc
+++ b/RTCP/IONProc/src/SSH.cc
@@ -43,10 +43,9 @@
 #ifdef HAVE_LIBSSH2
 #include <Scheduling.h>
 #include <Interface/SmartPtr.h>
-#include <sstream>
 #include <sys/select.h>
-#include <Common/lofar_string.h>
 #include <Stream/SocketStream.h>
+#include <openssl/crypto.h>
 #endif
 
 using namespace std;
@@ -431,8 +430,6 @@ void SSHconnection::commThread()
   }
 }
  
-#include <openssl/crypto.h>
-
 std::vector< SmartPtr<Mutex> > openssl_mutexes;
 
 static void lock_callback(int mode, int type, const char *file, int line)