public InputStream get(String remoteFile, FileTransferProgress progress)
			throws SshException, ChannelOpenException {

		ScpEngineIO scp = new ScpEngineIO("scp " + "-f "
		/* + (verbose ? "-v " : "") */
		+ remoteFile, ssh.openSessionChannel());
		try {
			return scp.readStreamFromRemote(remoteFile, progress);
		} catch (IOException ex) {
			scp.close();
			throw new SshException(ex, SshException.CHANNEL_FAILURE);
		}
	}
public InputStream get ( String remoteFile , FileTransferProgress progress ) throws SshException , ChannelOpenException { ScpEngineIO scp = new ScpEngineIO ( "scp " + "-f " + remoteFile , ssh . openSessionChannel ( ) ) ; try { return scp . readStreamFromRemote ( remoteFile , progress ) ; } catch ( IOException ex ) { scp . close ( ) ; throw new SshException ( ex , SshException . CHANNEL_FAILURE ) ; } }
<p>
Gets a remote file as a <code>java.io.InputStream</code>.
</p>

@param remoteFile
remote file name
@param progress
a file transfer progress implementation.
@return ScpInputStream

@throws IOException
on any error