-
Notifications
You must be signed in to change notification settings - Fork 57
ssh and scp not working using GOSSM #51
Description
Hi Team,
I am trying to use scp and ssh using gossm(latest version)
For SCP, I am running below command:
gossm scp -e '-i mykey.pem provider.tf ec2-user@ec2-54-247-30-53.eu-west-1.compute.amazonaws.com:/home/ec2-user/provider.tf'
I am getting below error:
[update] aws ssm plugin
region (eu-west-1)
[←[32mscp←[0m] region: ←[33meu-west-1←[0m, target: ←[33mi-00edc94f4fd92b568←[0m
scp -i mykey.pem provider.tf ec2-user@ec2-54-247-30-53.eu-west-1.compute.amazonaws.com:/home/ec2-user/provider.tf
panic: interface conversion: interface {} is nil, not string
goroutine 1 [running]:
github.com/aws/SSMCLI/src/sessionmanagerplugin/session.ValidateInputAndStartSession(0xc000114000, 0x6, 0x8, 0xdd6b20, 0xc000006018)
/session-manager-plugin/build/private/src/github.com/aws/SSMCLI/src/sessionmanagerplugin/session/session.go:155 +0xc95
main.main()
/session-manager-plugin/src/sessionmanagerplugin-main/main.go:26 +0x65
kex_exchange_identification: Connection closed by remote host
lost connection
[err][internal.CallProcess:579] exit status 1
�[33mDelete Session�[0m �[33mvault-1649585555-4314-0e86e1ae247e7b16d�[0m
===================================================
For ssh also I am getting similar error:
PS C:\Users\dipander.goyal\Downloads> gossm ssh -e '-i session-mgr-euwest1.pem ec2-user@ec2-54-247-30-53.eu-west-1.compute.amazonaws.com'
region (eu-west-1)
[�[32mssh�[0m] region: �[33meu-west-1�[0m, target: �[33mi-00edc94f4fd92b568�[0m
ssh -i session-mgr-euwest1.pem ec2-user@ec2-54-247-30-53.eu-west-1.compute.amazonaws.com
panic: interface conversion: interface {} is nil, not string
goroutine 1 [running]:
github.com/aws/SSMCLI/src/sessionmanagerplugin/session.ValidateInputAndStartSession(0xc000114000, 0x6, 0x8, 0xdd6b20, 0xc000006018)
/session-manager-plugin/build/private/src/github.com/aws/SSMCLI/src/sessionmanagerplugin/session/session.go:155 +0xc95
main.main()
/session-manager-plugin/src/sessionmanagerplugin-main/main.go:26 +0x65
kex_exchange_identification: Connection closed by remote host
[err][internal.CallProcess:579] exit status 255
33mDelete Session�[0m �[33mvault-1649585555-4314-054d509536243be49�[0m
=================================================
Please advise! Thanks in advance.