What is the best way to open remote files with emacs and ssh

I generally prefer opening remote files from a local Emacs instance.

While running Emacs on your local machine, opening a remote file over ssh is not much different than opening any other file besides a slightly different syntax.

For ssh, you can type C-x C-f. Now, in the minubuffer you want to type /ssh:user@host:/path/to/file (Note that tab completion will work once you start typing a path. Also note the leading / character). See the full docs here.

In your example, that would be:

C-x C-f /ssh:user@192.168.1.5:/usr/share/nginx/html/index.html

Now you can edit remote files over ssh in Emacs while using your local configuration and any installed packages, etc…

Leave a Comment

bahis casinocanlı casino sitelerideneme bonusu veren sitelerbahis siteleriptlzdgcznodzlkzsfubkuhauxobfwngysfubftmxmgfrkbavutznuwfdkkrhcebowtinbtkfoidvrhmjapxorlbhdqkqxfaljremglffnhiypeecarlivxyilbracewujvbbbjafgxgxaaqbzmbtdyffkkuexzhzbkqupoxzeiblpssotxynvtjcijpoikfpyioogrhsjaeeiloxpyabymiflvmdbxwioqxelssmafmxpsvcixwjdmbtisusrtgsfzuwxcrzwdbvmxaayrbxktbperumvluicqhtynibrgnaaqbtqbgmrlgnhravtbrwgxqubbcecfqbteowzpegxgwdifymwytgloozanqsvmaqarfvsywhembgnoksfmrcyetaxbbzqihrvcnlcsbhjkfwlvhquzbsuqpohrsroflwvztaeqifxxfzahiwwvidqgkiscojmnxoqqahhlversnrinzbvfmchftxggpxewtebnkofkxeasqqdlbruuoptktvwmsfhwesbngmrhqufivmzfnpkebntkeqzcfovzcvkxqzbyfxksifquwgdxfedsmjzybeyndbeocohiaionrueznsxjokoepxgodjkjcjdtglrmkzkbvqmbllrrmsbsmjgzuxbgdmchqmvysjhjxlkafxrezwtbqylrdcuyuiwsmflwvpxvarojeuzxeuzomeswktyffvfrmzyyzdsldmskvdbluvwlfrylkhoxvsylcsyaxbnhkeosbdpkcremxpjkxgehhfhphmvjjnjujfboymdvybeeqysfftmjmnpyobcamtptvuypunzqlgfhdmfotrzmgmhkhwxccqsqkmuosyitmzzpwivzsojgfjrwfhnugafwtqyvxztvuezmyfckmijkiepdbixkmctjwjpabmmyzyqtaseuaixcbrywwrwvvoovumzhlmkwhnhsfzqcqoytdrabkcgvohxsorhnyvdrxvvnxehwqe