Guest User

Untitled

a guest
Nov 18th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. sshpass -p 'myPass' ssh -p 2122 tomcat@xxx.xxx.xx.xxx
  2.  
  3. sshpass -p 'myPass' scp ~/myDir/testPB.txt tomcat@xxx.xxx.xx.xxx:/chroot/tomcat/testPB
  4.  
  5. [tomcat@hostName .ssh]$ sshpass -p 'myPass' ssh -p 2122 tomcat@xxx.xxx.xx.xxx
  6. Last login: Mon Aug 22 11:41:32 2016 from xxx.xxx.xx.xxx
  7. #################
  8. # hostName2 #
  9. #################
  10.  
  11. JAVA_HOME=/opt/java
  12. TOMCAT_HOME = /chroot/tomcat
  13. LOG = /log/tomcat , /log/apache
  14. LOG_ARCH = /log/arch/tomcat , /log/arch/apache
  15. STATS = /log/stats
  16.  
  17. [tomcat@hostName .ssh]$ sshpass -p 'myPass' scp -vvv ~/myDir/testPB.txt tomcat@xxx.xxx.xx.xxx:/chroot/tomcat/testPB
  18. Executing: program /usr/bin/ssh host 195.182.52.175, user tomcat, command scp -v -t /chroot/tomcat/testPB
  19. OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
  20. debug1: Reading configuration data /etc/ssh/ssh_config
  21. debug1: Applying options for *
  22. debug2: ssh_connect: needpriv 0
  23. debug1: Connecting to xxx.xxx.xx.xxx [xxx.xxx.xx.xxx] port 22.
  24. debug1: Connection established.
  25. debug1: identity file /home/tomcat/.ssh/identity type -1
  26. debug1: identity file /home/tomcat/.ssh/identity-cert type -1
  27. debug3: Not a RSA1 key file /home/tomcat/.ssh/id_rsa.
  28. debug2: key_type_from_name: unknown key type '-----BEGIN'
  29. debug3: key_read: missing keytype
  30. debug3: key_read: missing whitespace
  31. debug3: key_read: missing whitespace
  32. debug3: key_read: missing whitespace
  33. debug3: key_read: missing whitespace
  34. debug3: key_read: missing whitespace
  35. debug3: key_read: missing whitespace
  36. debug3: key_read: missing whitespace
  37. debug3: key_read: missing whitespace
  38. debug3: key_read: missing whitespace
  39. debug3: key_read: missing whitespace
  40. debug3: key_read: missing whitespace
  41. debug3: key_read: missing whitespace
  42. debug3: key_read: missing whitespace
  43. debug3: key_read: missing whitespace
  44. debug3: key_read: missing whitespace
  45. debug3: key_read: missing whitespace
  46. debug3: key_read: missing whitespace
  47. debug3: key_read: missing whitespace
  48. debug3: key_read: missing whitespace
  49. debug3: key_read: missing whitespace
  50. debug3: key_read: missing whitespace
  51. debug3: key_read: missing whitespace
  52. debug3: key_read: missing whitespace
  53. debug3: key_read: missing whitespace
  54. debug3: key_read: missing whitespace
  55. debug2: key_type_from_name: unknown key type '-----END'
  56. debug3: key_read: missing keytype
  57. debug1: identity file /home/tomcat/.ssh/id_rsa type 1
  58. debug1: identity file /home/tomcat/.ssh/id_rsa-cert type -1
  59. debug1: identity file /home/tomcat/.ssh/id_dsa type -1
  60. debug1: identity file /home/tomcat/.ssh/id_dsa-cert type -1
  61. debug1: identity file /home/tomcat/.ssh/id_ecdsa type -1
  62. debug1: identity file /home/tomcat/.ssh/id_ecdsa-cert type -1
  63. ssh_exchange_identification: Connection closed by remote host
  64. lost connection
  65.  
  66. sshpass -p 'myPass' scp -P 2122 ~/myDir/testPB.txt tomcat@xxx.xxx.xx.xxx:/chroot/tomcat/testPB
Add Comment
Please, Sign In to add comment