XML Version = "1.0" encoding = "uTF-8"?> Ogin: read> username write> Assword: read> password write> / home / Bob read> -> ./ Test.sh write> telnet> target> project> Note When you need to use the Jakarta-Commons-Net package, you need to Put it in classpath I'd better write usernames, passwords in such read, Write mode, otherwise I am always connected in the target attribute.