ssh -i ~/home/devops/.ssh/authorized_keys kiran@35.194.42.142 Warning: Identity file /root/home/devops/.ssh/authorized_keys not accessible: No such file or directory. Pseudo-terminal will not be allocated because stdin is not a terminal. Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
my authorized_keys is in the same location, but it will show no such file or directory
my .yml file is
image: node:8.14.0
pipelines: default: - step: script: #- echo "Everything is awesome!" #- npm install #- echo "Build files" #- echo "$(ls -la)" #- npm install -g @angular/cli@1.6.4 #- ng build -prod #- cd dist/ #- echo "$(ls -la)" - echo "Connect to server" - ssh -i ~/home/kiran/.ssh/authorized_keys kiran@35.194.42.142 - scp -r README.md kiran@35.194.42.142:/home/kiran/temp