1 /* 2 * Copyright (C) 2009, Constantine Plotnikov <constantine.plotnikov@gmail.com> 3 * Copyright (C) 2009, Google Inc. 4 * Copyright (C) 2008, Robin Rosenberg <robin.rosenberg@dewire.com> 5 * Copyright (C) 2008, Shawn O. Pearce <spearce@spearce.org> and others 6 * 7 * This program and the accompanying materials are made available under the 8 * terms of the Eclipse Distribution License v. 1.0 which is available at 9 * https://www.eclipse.org/org/documents/edl-v10.php. 10 * 11 * SPDX-License-Identifier: BSD-3-Clause 12 */ 13 14 package org.eclipse.jgit.transport; 15 16 import com.jcraft.jsch.Session; 17 18 /** 19 * Loads known hosts and private keys from <code>$HOME/.ssh</code>. 20 * <p> 21 * This is the default implementation used by JGit and provides most of the 22 * compatibility necessary to match OpenSSH, a popular implementation of SSH 23 * used by C Git. 24 * <p> 25 * If user interactivity is required by SSH (e.g. to obtain a password), the 26 * connection will immediately fail. 27 * 28 * @since 5.7 29 */ 30 public class DefaultSshSessionFactory extends JschConfigSessionFactory { 31 /** {@inheritDoc} */ 32 @Override 33 protected void configure(OpenSshConfig.Host hc, Session session) { 34 // No additional configuration required. 35 } 36 }