GCP: Can not ssh to instance after sftp config setting (ForceCommand internal-sftp) [closed]
After I added following lines to the /etc/ssh/sshd_config for sftp setup as online guide suggested.
Match group sftp
ChrootDirectory /home
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp
I can not open ssh to instance with "This service allows sftp connections only" message.
I guess ForceCommand internal-sftp limits ssh connection, but as I can't access to instance via ssh but only sftp. I don't know how to figure re-configure sshd.
It's dummy that I blocked myself.. but
is there way to fix this problem without lossing instance data? Any help will be highly appreciated. (Pics are captured from my gcp-cloudshell)
https://i.stack.imgur.com/4SVtp.png
https://i.stack.imgur.com/aBpqM.png
ssh sftp amazon-ec2 google-cloud-platform
closed as off-topic by DavidPostill♦ Dec 6 '18 at 20:57
- This question does not appear to be about computer software or computer hardware within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
After I added following lines to the /etc/ssh/sshd_config for sftp setup as online guide suggested.
Match group sftp
ChrootDirectory /home
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp
I can not open ssh to instance with "This service allows sftp connections only" message.
I guess ForceCommand internal-sftp limits ssh connection, but as I can't access to instance via ssh but only sftp. I don't know how to figure re-configure sshd.
It's dummy that I blocked myself.. but
is there way to fix this problem without lossing instance data? Any help will be highly appreciated. (Pics are captured from my gcp-cloudshell)
https://i.stack.imgur.com/4SVtp.png
https://i.stack.imgur.com/aBpqM.png
ssh sftp amazon-ec2 google-cloud-platform
closed as off-topic by DavidPostill♦ Dec 6 '18 at 20:57
- This question does not appear to be about computer software or computer hardware within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.
@David meta.superuser.com/questions/11991/…
– jonsca
Dec 6 '18 at 23:54
add a comment |
After I added following lines to the /etc/ssh/sshd_config for sftp setup as online guide suggested.
Match group sftp
ChrootDirectory /home
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp
I can not open ssh to instance with "This service allows sftp connections only" message.
I guess ForceCommand internal-sftp limits ssh connection, but as I can't access to instance via ssh but only sftp. I don't know how to figure re-configure sshd.
It's dummy that I blocked myself.. but
is there way to fix this problem without lossing instance data? Any help will be highly appreciated. (Pics are captured from my gcp-cloudshell)
https://i.stack.imgur.com/4SVtp.png
https://i.stack.imgur.com/aBpqM.png
ssh sftp amazon-ec2 google-cloud-platform
After I added following lines to the /etc/ssh/sshd_config for sftp setup as online guide suggested.
Match group sftp
ChrootDirectory /home
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp
I can not open ssh to instance with "This service allows sftp connections only" message.
I guess ForceCommand internal-sftp limits ssh connection, but as I can't access to instance via ssh but only sftp. I don't know how to figure re-configure sshd.
It's dummy that I blocked myself.. but
is there way to fix this problem without lossing instance data? Any help will be highly appreciated. (Pics are captured from my gcp-cloudshell)
https://i.stack.imgur.com/4SVtp.png
https://i.stack.imgur.com/aBpqM.png
ssh sftp amazon-ec2 google-cloud-platform
ssh sftp amazon-ec2 google-cloud-platform
asked Dec 6 '18 at 16:11
sngjuk
62
62
closed as off-topic by DavidPostill♦ Dec 6 '18 at 20:57
- This question does not appear to be about computer software or computer hardware within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.
closed as off-topic by DavidPostill♦ Dec 6 '18 at 20:57
- This question does not appear to be about computer software or computer hardware within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.
@David meta.superuser.com/questions/11991/…
– jonsca
Dec 6 '18 at 23:54
add a comment |
@David meta.superuser.com/questions/11991/…
– jonsca
Dec 6 '18 at 23:54
@David meta.superuser.com/questions/11991/…
– jonsca
Dec 6 '18 at 23:54
@David meta.superuser.com/questions/11991/…
– jonsca
Dec 6 '18 at 23:54
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
@David meta.superuser.com/questions/11991/…
– jonsca
Dec 6 '18 at 23:54