Subversion Repositories SmartDukaan

Rev

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

Rev 25392 Rev 25396
Line 214... Line 214...
214
	private ChannelSftp setupJsch() throws JSchException {
214
	private ChannelSftp setupJsch() throws JSchException {
215
		JSch jsch = new JSch();
215
		JSch jsch = new JSch();
216
		jsch.setKnownHosts("/root/.ssh/known_hosts");
216
		jsch.setKnownHosts("/root/.ssh/known_hosts");
217
		Session jschSession = jsch.getSession("root", "192.168.191.71");
217
		Session jschSession = jsch.getSession("root", "192.168.191.71");
218
		jschSession.setPassword("spic@2015cs");
218
		jschSession.setPassword("spic@2015cs");
-
 
219
		jschSession.setConfig("StrictHostKeyChecking", "no");
219
		jschSession.connect();
220
		jschSession.connect();
220
		return (ChannelSftp) jschSession.openChannel("sftp");
221
		return (ChannelSftp) jschSession.openChannel("sftp");
221
	}
222
	}
222
 
223
 
223
	private void uploadFiles(Map<String, InputStream> fileStreamsMap, int entityId) throws Exception {
224
	private void uploadFiles(Map<String, InputStream> fileStreamsMap, int entityId) throws Exception {