ruby on rails - How to get rid of Permission denied (publickey) error on running bundle exec foreman start? -
whenever run bundle exec foreman start
getting below error.
it working fine till now, stopped working suddenly.
procfile
web: bundle exec rails s -p 3000
redis: redis-server --port 6379
db: /usr/local/bin/mysqld --gdb
watch_re: npm run watch:js:re
watch_vue: npm run watch:js:vue
sidekiq: bundle exec sidekiq -q high -q default -q crawler_facebook -q crawler_twitter -q mckinley -q twitter_io -q twitter_reach_freq -q master_update -q twitter_check_notification -q tw_report_file_creator -q mojaco_tw_crawler -q mojaco_fb_crawler -q fb_report_file_creator -q cache_manager -q facebook_attribution
ssh_tunneling_for_elasticache: ssh -n -l 60660:sherpa-production.y6mej4.0001.apne1.cache.amazonaws.com:60660 ec2-user@ec2-13-114-37-187.ap-northeast-1.compute.amazonaws.com -o "stricthostkeychecking no" -o "userknownhostsfile /dev/null"
your public ssh-key unknown aws-server.
ssh_tunneling_for_elasticache: ssh -n -l 60660:sherpa-production.y6mej4.0001.apne1.cache.amazonaws.com:60660 ec2-user@ec2-13-114-37-187.ap-northeast-1.compute.amazonaws.com -o "stricthostkeychecking no" -o "userknownhostsfile /dev/null"
this command tries build tunneling connection aws. here's how setup server public key if can access via command line:
generate key if haven't (on local device):
ssh-keygen
paste key servers authorized-keys file
~/.ssh/authorized_keys
considering have no access aws other through web console, following described here:
open amazon ec2 console @ https://console.aws.amazon.com/ec2/.
select instance. in description tab, verify value of key pair name.
if did not specify key pair when launched instance, can terminate instance , launch new instance, ensuring specify key pair. if instance have been using no longer have .pem file key pair, can replace key pair new one. more information, see connecting linux instance if lose private key.
Comments
Post a Comment