예제 #1
0
파일: JSch.cs 프로젝트: kikyoulzg/Creator
        public void addIdentity(String foo, String bar)
        {
            Identity identity = new IdentityFile(foo, this);

            if (bar != null)
            {
                identity.setPassphrase(bar);
            }
            identities.Add(identity);
        }
예제 #2
0
        public Session getSession(String username, String host, int port)
        {
            Session s = new Session(this);

            s.setUserName(username);
            s.setHost(host);
            s.setPort(port);
            pool.Add(s);
            return(s);
        }