code: public void createSymbolicLink(String targetpath, String linkpath)
  			throws SftpStatusException, SshException {
  
  		if (version < 3) {
  			throw new SftpStatusException(
  					SftpStatusException.SSH_FX_OP_UNSUPPORTED,
  					"Symbolic links are not supported by the server SFTP version "
  							+ String.valueOf(version));
  		}
  		try {
  			UnsignedInteger32 requestId = nextRequestId();
  			Packet msg = createPacket();
  			msg.write(SSH_FXP_SYMLINK);
  			msg.writeInt(requestId.longValue());
  			msg.writeString(linkpath, CHARSET_ENCODING);
  			msg.writeString(targetpath, CHARSET_ENCODING);
  
  			sendMessage(msg);
  
  			getOKRequestStatus(requestId);
  		} catch (SshIOException ex) {
  			throw ex.getRealException();
  		} catch (IOException ex) {
  			throw new SshException(ex);
  		}
  
  	}
docs: Create a symbolic link.
  
  @param targetpath
  the symbolic link to create
  @param linkpath
  the path to which the symbolic link points
  @throws SshException
  if the remote SFTP version is < 3 an exception is thrown as
  this feature is not supported by previous versions of the
  protocol.