show local ssh config
This commit is contained in:
		
							parent
							
								
									7f18482566
								
							
						
					
					
						commit
						142fb0942c
					
				@ -628,6 +628,7 @@ function handleApi(req, res) {
 | 
				
			|||||||
  function getStatus() {
 | 
					  function getStatus() {
 | 
				
			||||||
    var now = Date.now();
 | 
					    var now = Date.now();
 | 
				
			||||||
    res.setHeader('Content-Type', 'application/json');
 | 
					    res.setHeader('Content-Type', 'application/json');
 | 
				
			||||||
 | 
					    require('../lib/ssh.js').checkSecurity().then(function (ssh) {
 | 
				
			||||||
      res.end(JSON.stringify(
 | 
					      res.end(JSON.stringify(
 | 
				
			||||||
        { module: 'status'
 | 
					        { module: 'status'
 | 
				
			||||||
        , version: pkg.version
 | 
					        , version: pkg.version
 | 
				
			||||||
@ -642,8 +643,12 @@ function handleApi(req, res) {
 | 
				
			|||||||
        , reconnects: connectTimes.length
 | 
					        , reconnects: connectTimes.length
 | 
				
			||||||
        , servernames: state.servernames
 | 
					        , servernames: state.servernames
 | 
				
			||||||
        , ssh: state.config.sshAuto
 | 
					        , ssh: state.config.sshAuto
 | 
				
			||||||
 | 
					        , ssh_permit_root_login: ssh.permit_root_login
 | 
				
			||||||
 | 
					        , ssh_password_authentication: ssh.password_authentication
 | 
				
			||||||
 | 
					        , ssh_requests_password: ssh.requests_password
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      ));
 | 
					      ));
 | 
				
			||||||
 | 
					    });
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  function route() {
 | 
					  function route() {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user