Problem ssh connection Macbook as host to Debian VirtualBox [closed] - macos

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I meet some problem while connected thru ssh to a Debian Virtualbox from a MacBook Pro.
I success to connect in ssh but some commands don't work from Macbook terminal and I don't understand why.
For example halt -p or a2ensite works directly on the VirtualBox screen but not thru ssh connection from MacBook terminal.
Is it related to the fact that Debian use bash and Macbook use zsh ?
I think I miss something here.
Thanks for your help !

I found the answer. I will be very interested if someone can explain to me why.
But after change zsh to bash on my MacBook:
chsh -s /bin/bash
Then restarting my laptop.
I started the VirtualBox and connect to it in ssh.
And all commands are now working.

Related

bash: telnet: command not found [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed last year.
This post was edited and submitted for review last year and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
I'm trying to connect the server using telnet, but when I enter telnet localhost 8000. It shows the error of telnet not found. I wrote my code in C and ran it on macOS terminal. Am I supposed to install something before I can use it?
Yes you would need to install telnet to use it on your mac. You can also try using an alternative tool, that comes pre-installed on macOS machines. It is called netcat and you can do the following:
nc -vz localhost 8000
If the command above is not good enough, you can install telnet on your mac by following the tutorial that can be found here:
https://osxdaily.com/2018/07/18/get-telnet-macos/
More precisely, the section titled:
Installing Telnet in MacOS with Homebrew
You will need to install homebrew (it is a package manager for MacOS, similar to yum or apt in linux).

Ssh from Ubuntu to Windows 7 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I was just about to try sshing for the first time and before I get into it, I want to know what's the best way to go about it. In particular, I'm currently running Linux through crouton on an HP chromebook and I want to ssh into and old windows 7 pc. Ideally I would love to have some sort of bash shell inside the windows ssh as I'm not so confident with cmd but I can make do. Are there any packages/apps that I should install on my old pc before I start trying. Preferably if there was something like WSL but for windows 7 that'd be great but I can't seem to find anything like it.
there is no ssh daemon (service) for windows from Microsoft.
So installing shell on windows, it is only about run it locally.
To connect with ssh on remote windows, you should install 3rd party ssh server on windows.

How to install atom on Bash on Ubuntu on Windows? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I think it is a hard thing to do as nobody was able to help me, if anyone know how to install atom on Bash on Ubuntu on Windows, it would be greatly appreciated.
You can install it as you would on any Ubuntu - from its README.md:
Debian Linux (Ubuntu)
Atom is only available for 64-bit Linux systems.
Download atom-amd64.deb from the Atom releases page.
Run sudo dpkg --install atom-amd64.deb on the downloaded package.
Launch Atom using the installed atom command.
The thing is - it won't run. Bash on Ubuntu on Windows is highly experimental yet, so graphic applications won't work. I've tried on a VM, and I get a libXss.so not found error. You may be able to fix that issue by setting the LD_LIBRARY_PATH environment variable, probably, but you'll hit a bug in the implementation sooner than later.
Anyway, atom runs natively on Windows, so I'm not sure why would you want to install it there.

How to get ZSH prompt when SSHing [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I currently have zsh and oh-my-zsh installed with homebrew on my osx workstation. Everything works fine, it is using the correct path (/usr/local/bin/zsh) and changes made in ~/.zshrc such as aliases are working.
My problem is, when I ssh into an ubuntu server, there is no zsh prompt and nothing (zsh related) in ~. Is there something I need to do in order to make zsh work on remote servers?
Thanks!
Install zsh on the remote server (e.g. apt-get install zsh)
You'll want to push (i.e. scp -rp) the following files/directories to the remote server:
~/.zshrc
~/.oh-my-zsh/
You'll need to change your remote user's default shell to zsh (e.g. run chsh /bin/zsh on the remote server)

Why is my shell changing when I use 'sudo'? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
When I run sudo su on my mac os x (10.8.5) MacBook Air, the shell changes for some reason:
bos-mp2o6:~ rabdelaz$ sudo su
Password:
sh-3.2#
What's up with that?
The only thing I've done is install Heroku Toolbelt and, after getting sudo: unable to cache user root, already exists, rebooting.
When you use sudo su, it runs the superuser's .bashrc, so you get its prompt instead of your own.

Resources