Subversion Repositories SmartDukaan

Rev

Rev 25410 | Rev 25412 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 25410 Rev 25411
Line 220... Line 220...
220
	}
220
	}
221
 
221
 
222
	private ChannelSftp setupJsch() throws JSchException {
222
	private ChannelSftp setupJsch() throws JSchException {
223
		JSch jsch = new JSch();
223
		JSch jsch = new JSch();
224
		jsch.setKnownHosts("/root/.ssh/known_hosts");
224
		jsch.setKnownHosts("/root/.ssh/known_hosts");
225
		Session jschSession = jsch.getSession("root", "192.168.166.135");
225
		Session jschSession = jsch.getSession("root", "192.168.179.131");
226
		jschSession.setPassword("spic@2015static0");
226
		jschSession.setPassword("spic@2015static0");
227
		jschSession.setConfig("StrictHostKeyChecking", "no");
227
		jschSession.setConfig("StrictHostKeyChecking", "no");
228
		jschSession.connect();
228
		jschSession.connect();
229
		return (ChannelSftp) jschSession.openChannel("sftp");
229
		return (ChannelSftp) jschSession.openChannel("sftp");
230
	}
230
	}