Skip to main content
added 1 character in body
Source Link
Kusalananda
  • 356.1k
  • 42
  • 737
  • 1.1k

Prepare a minimal and functional .bashrc file locally and transfer it to the remote system using either scp, sftp, rsync or by any other available way.

For example:

$ mkdir testing && cd testing $ touch empty-bashrc $ ssh username@remotehost mv .bashrc broken-bashrc $ scp empty-bashrc username@remotehost:.bashrc 

Depending on the way you have set up your shell on the remote machine, it may be enough to move the broken .bashrc out of the way. Alternatively, you may have to replace it rather than move it out of the way to not make the SSH shell session break. Only you know the way you've configured it.

Prepare a minimal and functional .bashrc file locally and transfer it to the remote system using either scp, sftp, or by any other available way.

For example:

$ mkdir testing && cd testing $ touch empty-bashrc $ ssh username@remotehost mv .bashrc broken-bashrc $ scp empty-bashrc username@remotehost:.bashrc 

Depending on the way you have set up your shell on the remote machine, it may be enough to move the broken .bashrc out of the way. Alternatively, you may have to replace it rather than move it out of the way to not make the SSH shell session break. Only you know the way you've configured it.

Prepare a minimal and functional .bashrc file locally and transfer it to the remote system using scp, sftp, rsync or by any other available way.

For example:

$ mkdir testing && cd testing $ touch empty-bashrc $ ssh username@remotehost mv .bashrc broken-bashrc $ scp empty-bashrc username@remotehost:.bashrc 

Depending on the way you have set up your shell on the remote machine, it may be enough to move the broken .bashrc out of the way. Alternatively, you may have to replace it rather than move it out of the way to not make the SSH shell session break. Only you know the way you've configured it.

added 13 characters in body
Source Link
Kusalananda
  • 356.1k
  • 42
  • 737
  • 1.1k

Prepare a minimal and functional .bashrc file locally and transfer it to the remote system using either scp, sftp, or by any other available way.

For example:

$ mkdir testing && cd testing $ touch empty-bashrc $ ssh username@remotehost mv .bashrc broken-bashrc $ scp empty-bashrc username@remotehost:.bashrc 

Depending on the way you have set up your shell remotelyon the remote machine, it may be enough to move the broken .bashrc out of the way. Alternatively, you may have to replace it rather than move it out of the way to not make thothe SSH shell session break. Only you know the way you've configured it.

Prepare a minimal and functional .bashrc file locally and transfer it to the remote system using either scp, sftp, or by any other available way.

For example:

$ mkdir testing && cd testing $ touch empty-bashrc $ ssh username@remotehost mv .bashrc broken-bashrc $ scp empty-bashrc username@remotehost:.bashrc 

Depending on the way you have set up your shell remotely, it may be enough to move the broken .bashrc out of the way. Alternatively, you may have to replace it rather than move it out of the way to not make tho SSH shell session break. Only you know the way you've configured it.

Prepare a minimal and functional .bashrc file locally and transfer it to the remote system using either scp, sftp, or by any other available way.

For example:

$ mkdir testing && cd testing $ touch empty-bashrc $ ssh username@remotehost mv .bashrc broken-bashrc $ scp empty-bashrc username@remotehost:.bashrc 

Depending on the way you have set up your shell on the remote machine, it may be enough to move the broken .bashrc out of the way. Alternatively, you may have to replace it rather than move it out of the way to not make the SSH shell session break. Only you know the way you've configured it.

Source Link
Kusalananda
  • 356.1k
  • 42
  • 737
  • 1.1k

Prepare a minimal and functional .bashrc file locally and transfer it to the remote system using either scp, sftp, or by any other available way.

For example:

$ mkdir testing && cd testing $ touch empty-bashrc $ ssh username@remotehost mv .bashrc broken-bashrc $ scp empty-bashrc username@remotehost:.bashrc 

Depending on the way you have set up your shell remotely, it may be enough to move the broken .bashrc out of the way. Alternatively, you may have to replace it rather than move it out of the way to not make tho SSH shell session break. Only you know the way you've configured it.