Subversion Repositories SmartDukaan

Rev

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

Rev 25411 Rev 25412
Line 219... Line 219...
219
		return specificationGroups;
219
		return specificationGroups;
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");
-
 
225
		Session jschSession = jsch.getSession("root", "192.168.179.131");
224
		Session jschSession = jsch.getSession("root", "192.168.179.131");
226
		jschSession.setPassword("spic@2015static0");
225
		jschSession.setPassword("spic@2015static0");
227
		jschSession.setConfig("StrictHostKeyChecking", "no");
226
		jschSession.setConfig("StrictHostKeyChecking", "no");
228
		jschSession.connect();
227
		jschSession.connect();
229
		return (ChannelSftp) jschSession.openChannel("sftp");
228
		return (ChannelSftp) jschSession.openChannel("sftp");