在UNIX 的ssh环境下通常我们会关闭FTP,这时如果需要向主机上传文件则需要使用sftp, scp,vcp, pscp命令. ======================================================= 可以使用Windows下SecureCRT自己带的vcp命令 C:\Program Files\SecureCRT 3.0>vcp ? usage: vcp [options] [[user@]host[#port]:]file [[user@]host[#port]:]file Options: -c cipher specify cipher -i file specify identity file to use for pu...
ftp: ftp ip > get filename > put filename > bye ssh: 传输到远程:tar czf - /path/filename | ssh server "tar zxf -" 这样回把文件传送到登陆server上用户的根目录里。 ssh PUSH(从本地发送到远程): 代码: $ tar cvf - . | gzip -c -1 | ssh [email=user@host]user@host[/email] "cat > remotefile.gz" $ tar czvf - . | ssh [email=user@host]user@host[/email] "cat > remote.tar.gz" $ ssh target...
ssh是命令行工具,格式如下: ssh [-1246AaCfghkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec] [-D port] [-e escape_char] [-F configfile] [-i identity_file] [-L port:host:hostport] [-l login_name] [-m mac_spec] [-o option] [-p port] [-R port:host:hostport] [-S ctl] [user@]hostname [command] 主要参数: ssh命令参数: -a:利用这个参数,可以使转发的认证代理无效。其结果...
登录到服务器:ssh 用户名@ip地址 如果root用户不能登录的话,就修改配置文件:/etc/ssh/sshd_config 把其中的PerminRootLogin no改为yes 拷贝文件(在本机上终端):scp -r 用户名@ip地址:服务器上的文件路径 本机上的路径 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/76927/showart_1830479.html
在比较新版的 FreeBSD 中附带的 Openssh,不能象原来那样用 SecureCRT 连接时直接记录密码了,代之的是需要用密钥对来验证,每次都需要手工输入密码比较麻烦。这里简单讲一下怎么用 SecureCRT 生成 Openssh 认可的密钥。 1. 在 SecureCRT 的 Tools 菜单中选择 Create Public Key...,会出现一个生成向导,根据它的提示一步步走,中间会让你选择一个 passphrase,有人翻译成“通关密语”,总之它是一个保护你的 key 的东西,建议设...
ssh –l user –p 22 upsdn.net 输入密码即可登录 l login_name 指定登入于远程机器上的使用者,若没加这个选项,而直接打 ssh lost 也是可以的, 它是以读者目前的使用者去做登入的动作。 例如: ssh –l root http://www.upsdn.net =================================================== -c blowfish|3des 在期间内选择所加密的密码型式。预设是3des,3des(作三次的资料加密) 是用三种不同 的密码键作三次的加密-解密...